class Steamcr::Server
- Steamcr::Server
- Reference
- Object
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.crConstructors
-
.new(host : String, port : Int32)
Instantiate a Server
Instance Method Summary
-
#host : String
The host IP of the Steam server
-
#port : Int32
The host port of the Steam server
Constructor Detail
def self.new(host : String, port : Int32)
#
Instantiate a Server
@param host [String] the server host @param port [String] the server port