Esempio n. 1
0
        public void OnP2PMemberJoin(HostID memberHostID, HostID groupHostID, int memberCount, ByteArray customField)
        {
            SimpleApp.print("[Client] P2P member " + memberHostID + " joined  group " + groupHostID + ".");

            this.GroupID = groupHostID;

            if (memberHostID != m_client.LocalHostID)
            {
                m_simpleProxy.P2PChat(memberHostID, RmiContext.ReliableSend, "Hello~~", 1, 1);
            }
        }
Esempio n. 2
0
 public void OnJoinServerComplete(ErrorInfo info, ByteArray replyFromServer)        //
 {
     IsConnectWaiting = false;
     if (info.errorType == ErrorType.Ok)
     {
         SimpleApp.print("Server connection ok. Client HostID = " + m_client.LocalHostID);
         IsConnected = true;
     }
     else
     {
         SimpleApp.print("Server connection failed.");
     }
 }
Esempio n. 3
0
 public void OnWarning(ErrorInfo errorInfo)
 {
     SimpleApp.print("Warinig :  " + errorInfo.ToString());
 }
Esempio n. 4
0
 public void OnNoRmiProcessed(RmiID rmiID)
 {
     SimpleApp.print("NoRmiProcessed : " + rmiID);
 }
Esempio n. 5
0
 public void OnInformation(ErrorInfo errorInfo)
 {
     SimpleApp.print("Information " + errorInfo.ToString());
 }
Esempio n. 6
0
 public void OnException(HostID remoteID, System.Exception e)
 {
     SimpleApp.print("exception : " + e.ToString());
 }
Esempio n. 7
0
 public void OnError(ErrorInfo errorInfo)
 {
     SimpleApp.print("Error : " + errorInfo.ToString());
 }
Esempio n. 8
0
 public void OnP2PMemberLeave(HostID memberHostID, HostID groupHostID, int memberCount)
 {
     SimpleApp.print("[Client] P2P member " + memberHostID + " left group " + groupHostID + ".");
 }
Esempio n. 9
0
 public void OnReceiveUserMessage(HostID sender, RmiContext rmiContext, ByteArray payload)
 {
     SimpleApp.print("ReceiveUserMessage HostID : " + sender);
 }
Esempio n. 10
0
 public void OnChangeServerUdp(ErrorType reason)
 {
     SimpleApp.print("ChangeServerUdp " + reason);
 }