Esempio n. 1
0
 private void ConnectButton_Click(object sender, EventArgs e)
 {
     _sNetClient = new SNetClient();
     _sNetClient.Connect("192.168.179.101", 50001);
     //_sNetClient.OnConnect +=
     _sNetClient.OnRecieve += SNetClient_OnRecieve;
     _sNetClient.OnDisconnect += SNetClient_OnDisconnect;
     //_sNetClient.OnSend +=
 }
Esempio n. 2
0
 private void TcpClientConnect()
 {
     _role = "Client";
     _sNetClient = new SNetClient();
     _sNetClient.Connect(_serverHostName, 50001);
     _sNetClient.OnConnect += SNetClient_OnConnect;
     _sNetClient.OnRecieve += SNetClient_OnRecieve;
     _sNetClient.OnDisconnect += SNetClient_OnDisconnect;
 }