Inheritance: BaseBinaryStub
Ejemplo n.º 1
0
 public ClientSocket(IPAddress address, int port)
     : base(10, LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType))
 {
     this.Setup(new IPEndPoint(address, port), new ClientMessageProcessor());
     Handler = new Handler();
     Rpc = new BinarySenderStub(this);
 }
Ejemplo n.º 2
0
 public ClientSocket(IPAddress address, int port)
     : base(10, LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType))
 {
     this.Setup(new IPEndPoint(address, port), new ClientMessageProcessor());
     Handler = new Handler();
     Rpc     = new BinarySenderStub(this);
 }
Ejemplo n.º 3
0
 public ClientSocket(IPAddress address, int port)
     : base(0, TimeSpan.Zero)
 {
     this.Setup(new IPEndPoint(address, port), new ClientMessageProcessor());
     this.Client.Client.SendTimeout = 4000;
     Handler = new Handler();
     Rpc     = new BinarySenderStub(this);
 }
Ejemplo n.º 4
0
 // Indicates if this client is connected
 public Client(IPAddress address, int port)
 {
     // Init fields
     Port        = port;
     _address    = address;
     _tcp        = new TcpClient(address.AddressFamily);
     _handler    = new Handler();
     _binHandler = _handler.ReceiveMessage;
     // Create a remote call interface
     Rpc = new BinarySenderStub(_tcp);
 }
Ejemplo n.º 5
0
 public void Binary()
 {
     Rpc.Binary();
     Rpc = new BinarySenderStub(_tcp);
 }