public SFSIOHandler(ISocketClient bitSwarm) { this.bitSwarm = bitSwarm as BitSwarmClient; log = bitSwarm.Log; packetEncrypter = new DefaultPacketEncrypter(this.bitSwarm); protocolCodec = new SFSProtocolCodec(this, bitSwarm); InitStates(); }
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); }