Example #1
0
 /// <summary>
 /// /
 /// </summary>
 /// <param name="bitSwarm"></param>
 public MPIOHandler(BitSwarmClient bitSwarm)
 {
     this.bitSwarm      = bitSwarm;
     this.log           = bitSwarm.Log;
     this.protocolCodec = new ProtocolCodec(this, bitSwarm);
     this.InitStates();
 }
Example #2
0
 public SFSIOHandler(ISocketClient bitSwarm)
 {
     this.bitSwarm   = bitSwarm as BitSwarmClient;
     log             = bitSwarm.Log;
     packetEncrypter = new DefaultPacketEncrypter(this.bitSwarm);
     protocolCodec   = new SFSProtocolCodec(this, bitSwarm);
     InitStates();
 }
Example #3
0
 public ModbusClient(IProtocolCodec codec)
 {
     this.Codec = codec;
 }
 public ModbusServer(IProtocolCodec codec)
 {
     this.Codec = codec;
 }
Example #5
0
 public ModbusClient(IProtocolCodec codec)
 {
     Codec = codec;
 }
Example #6
0
 public WSIOHandler(ISocketClient socketClient)
 {
     this.socketClient = socketClient;
     log           = socketClient.Log;
     protocolCodec = new WSProtocolCodec(this, socketClient);
 }
Example #7
0
 public ModbusServer(IProtocolCodec codec)
 {
     Codec = codec;
 }