Inheritance: BaseBinaryStub
示例#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);
 }
示例#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);
 }
示例#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);
 }
示例#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);
 }
示例#5
0
 public void Binary()
 {
     Rpc.Binary();
     Rpc = new BinarySenderStub(_tcp);
 }