Exemple #1
0
 public static void SafeInvoke(this NetEventCallback callback, INetEventObject message)
 {
     if (callback != null)
     {
         callback.Invoke(message);
     }
 }
Exemple #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);
        }
Exemple #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);
            }
        }
Exemple #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());
 }
Exemple #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);
 }
Exemple #6
0
 private void OnConnectedFail(INetEventObject message)
 {
     Util.ClientLog("Client:{0} OnConnectedFail", uid);
 }
Exemple #7
0
 private void OnConnectedFail(INetEventObject message)
 {
     Debug("Client Connected Failed");
 }
Exemple #8
0
 private void OnConnected(INetEventObject message)
 {
     Debug("Client Connected Success");
     TCPTest.OnClientConnect(this);
 }