示例#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);
        }
示例#2
0
 public void OnStartSending(FastNetwork.IConnection connection, FastNetwork.Packet packet)
 {
     //Console.WriteLine("start sending");
 }
示例#3
0
 public void OnReceived(FastNetwork.IConnection connection, object obj)
 {
     Console.WriteLine("receive data");
 }
示例#4
0
 public void OnException(FastNetwork.IConnection connection, Exception ex)
 {
     Console.WriteLine("error");
 }
示例#5
0
 public void OnDisconnected(FastNetwork.IConnection connection, Exception ex)
 {
     Console.WriteLine("disconnect with server");
 }
示例#6
0
 public void OnConnected(FastNetwork.IConnection connection)
 {
     Console.WriteLine("connected server");
 }