class TCPServerManager
- TCPServerManager
- Reference
- Object
Defined in:
models/server_manager.crConstructors
Instance Method Summary
- #client_count : Int32
- #client_count=(client_count : Int32)
- #client_id : UInt64
- #client_id=(client_id : UInt64)
- #close
- #close_client(remote_ip, client_id : UInt64)
-
#connections : Hash(String, Hash(UInt64, IPSocket))
"remote ip" => { client_id => socket }
-
#connections=(connections : Hash(String, Hash(UInt64, IPSocket)))
"remote ip" => { client_id => socket }
- #new_connection(ip : String, client : IPSocket) : UInt64
- #remove_connection(ip : String, id : UInt64) : Int32
- #server : TCPServer
- #server=(server : TCPServer)
Constructor Detail
Instance Method Detail
def connections=(connections : Hash(String, Hash(UInt64, IPSocket)))
#
"remote ip" => { client_id => socket }