class Steamcr::Server

Overview

Represents a Steam server we can use @example Creating server object server = Server.new('127.0.0.1', 123) puts server.host # => '127.0.0.1' puts server.port # => 123

@see Networking::Connection

Defined in:

steamcr/server.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(host : String, port : Int32) #

Instantiate a Server

@param host [String] the server host @param port [String] the server port


[View source]

Instance Method Detail

def host : String #

The host IP of the Steam server


[View source]
def port : Int32 #

The host port of the Steam server


[View source]