public void Init() { Connection = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); SrvInfo = new ServerInfo(); CurrClientCommand = new ClientCommand(); CurrServerCommand = new ServerCommand(); }
public void GetServerInfo() { this.CurrClientCommand = new ClientCommand(16); this.ExecuteCmd(this.CurrClientCommand); }
public void ExecuteCmd(ClientCommand command) { this.Connection.Send(System.Text.Encoding.UTF8.GetBytes(command.ToString())); }
public void Init() { this.Connection = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); this.SrvInfo = new ServerInfo(); this.CurrClientCommand = new ClientCommand(); this.CurrServerCommand = new ServerCommand(); }
public void getServerInfo() { CurrClientCommand = new ClientCommand(16); ExecuteCmd(CurrClientCommand); }
public void ExecuteCmd(ClientCommand _cmd) { Connection.Send(System.Text.Encoding.UTF8.GetBytes(_cmd.ToString())); }