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); }
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); }
// 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); }
public void Binary() { Rpc.Binary(); Rpc = new BinarySenderStub(_tcp); }