class TCPServerManager

Defined in:

models/server_manager.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(server : TCPServer) #

[View source]

Instance Method Detail

def client_count : Int32 #

[View source]
def client_count=(client_count : Int32) #

[View source]
def client_id : UInt64 #

[View source]
def client_id=(client_id : UInt64) #

[View source]
def close #

[View source]
def close_client(remote_ip, client_id : UInt64) #

[View source]
def connections : Hash(String, Hash(UInt64, IPSocket)) #

"remote ip" => { client_id => socket }


[View source]
def connections=(connections : Hash(String, Hash(UInt64, IPSocket))) #

"remote ip" => { client_id => socket }


[View source]
def new_connection(ip : String, client : IPSocket) : UInt64 #

[View source]
def remove_connection(ip : String, id : UInt64) : Int32 #

[View source]
def server : TCPServer #

[View source]
def server=(server : TCPServer) #

[View source]