Пример #1
0
 public SFSIOHandler(ISocketClient bitSwarm)
 {
     this.bitSwarm   = bitSwarm as BitSwarmClient;
     log             = bitSwarm.Log;
     packetEncrypter = new DefaultPacketEncrypter(this.bitSwarm);
     protocolCodec   = new SFSProtocolCodec(this, bitSwarm);
     InitStates();
 }
Пример #2
0
 public UDPManager(SmartFox sfs)
 {
     this.sfs = sfs;
     packetId = 0L;
     if (sfs != null)
     {
         log = sfs.Log;
     }
     else
     {
         log = new Logger(null);
     }
     currentAttempt  = 1;
     packetEncrypter = new DefaultPacketEncrypter(sfs.GetSocketEngine() as BitSwarmClient);
 }