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); }
private XmlReceiveDelegate xmlHandler; // Receive delegate when in xml mode #endregion Fields #region Constructors // Gets the underlying windows socket //public TcpClient Socket //{ get { return tcp; } } // C'tor public Client(IPAddress address, int port) { // Init fields this.port = port; this.address = address; tcp = new TcpClient(address.AddressFamily); handler = new Handler(); xmlHandler = new XmlReceiveDelegate(handler.ReceiveMessage); // Create a remote call interface rpc = new XmlSenderStub(tcp); }
public BinaryParser(Handler handler) { this.handler = handler; }
public BinaryParser(Handler handler) { _handler = handler; }
public XmlParser(Handler handler) { this.handler = handler; }