Exemplo n.º 1
0
        public void OnSendCallback(FastNetwork.IConnection connection, FastNetwork.Event.SendCallbackEventArgs e)
        {
            //Console.WriteLine("send callback");

            //UserInfo info = new UserInfo("zhujun", 18);

            //_client.Send(info);
        }
Exemplo n.º 2
0
 public void OnException(FastNetwork.IConnection connection, Exception ex)
 {
     Console.WriteLine("error");
 }
Exemplo n.º 3
0
 public void OnDisconnected(FastNetwork.IConnection connection, Exception ex)
 {
     Console.WriteLine("disconnect with server");
 }
Exemplo n.º 4
0
 public void OnReceived(FastNetwork.IConnection connection, object obj)
 {
     Console.WriteLine("receive data");
 }
Exemplo n.º 5
0
 public void OnStartSending(FastNetwork.IConnection connection, FastNetwork.Packet packet)
 {
     //Console.WriteLine("start sending");
 }
Exemplo n.º 6
0
 public void OnConnected(FastNetwork.IConnection connection)
 {
     Console.WriteLine("connected server");
 }