예제 #1
0
 public Socket(string ip, int port, Emitter.Listener connectCallback)
 {
     this.ip   = ip;
     this.port = port;
     callbacks.Add(OpCodeReceive.ONCONNECT, connectCallback);
     StartClient();
 }
예제 #2
0
 public void Off(OpCodeReceive opCode, Emitter.Listener callback)
 {
     callbacks.Remove(opCode);
 }
예제 #3
0
 public void On(OpCodeReceive opCode, Emitter.Listener callback)
 {
     callbacks.Add(opCode, callback);
 }