コード例 #1
0
 public void Init()
 {
     Connection        = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
     SrvInfo           = new ServerInfo();
     CurrClientCommand = new ClientCommand();
     CurrServerCommand = new ServerCommand();
 }
コード例 #2
0
 public void GetServerInfo()
 {
     this.CurrClientCommand = new ClientCommand(16);
     this.ExecuteCmd(this.CurrClientCommand);
 }
コード例 #3
0
 public void ExecuteCmd(ClientCommand command)
 {
     this.Connection.Send(System.Text.Encoding.UTF8.GetBytes(command.ToString()));
 }
コード例 #4
0
 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();
 }
コード例 #5
0
 public void getServerInfo()
 {
     CurrClientCommand = new ClientCommand(16);
     ExecuteCmd(CurrClientCommand);
 }
コード例 #6
0
 public void ExecuteCmd(ClientCommand _cmd)
 {
     Connection.Send(System.Text.Encoding.UTF8.GetBytes(_cmd.ToString()));
 }
コード例 #7
0
 public void ExecuteCmd(ClientCommand _cmd)
 {
     Connection.Send(System.Text.Encoding.UTF8.GetBytes(_cmd.ToString()));
 }
コード例 #8
0
 public void getServerInfo()
 {
     CurrClientCommand = new ClientCommand(16);
     ExecuteCmd(CurrClientCommand);
 }