Ejemplo n.º 1
0
 public static void SafeInvoke(this NetEventCallback callback, INetEventObject message)
 {
     if (callback != null)
     {
         callback.Invoke(message);
     }
 }
Ejemplo n.º 2
0
        private void OnCloseCallback(INetEventObject message)
        {
            RawMessage msg  = message as RawMessage;
            string     port = msg.userData as string;

            Debug("Client OnClose, port:{0}", port);
            TCPTest.OnClientClose(this);
        }
Ejemplo n.º 3
0
        private void OnCloseCallback(INetEventObject message)
        {
            RawMessage msg  = message as RawMessage;
            string     port = msg.data as string;

            Util.ClientLog("Client OnClose port:{0} uid:{1} ", port, uid);
            if (port != string.Empty)
            {
                TCPTest.OnClientClose(uid);
            }
        }
Ejemplo n.º 4
0
 private void OnConnectionDropped(INetEventObject message)
 {
     Net.TCP.Server.ConnectionMessage connectionMessage = message as Net.TCP.Server.ConnectionMessage;
     Util.Debug.ServerLog("OnConnectionDropped form:{0}", connectionMessage.remote.ToString());
 }
Ejemplo n.º 5
0
 private void OnAccepted(INetEventObject message)
 {
     Net.TCP.Server.ConnectionMessage connectionMessage = message as Net.TCP.Server.ConnectionMessage;
     Util.Debug.ServerLog("Accepted form:{0}", connectionMessage.remote);
 }
Ejemplo n.º 6
0
 private void OnConnectedFail(INetEventObject message)
 {
     Util.ClientLog("Client:{0} OnConnectedFail", uid);
 }
Ejemplo n.º 7
0
 private void OnConnectedFail(INetEventObject message)
 {
     Debug("Client Connected Failed");
 }
Ejemplo n.º 8
0
 private void OnConnected(INetEventObject message)
 {
     Debug("Client Connected Success");
     TCPTest.OnClientConnect(this);
 }