Пример #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
        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);
        }
Пример #3
0
 public BinaryParser(Handler handler)
 {
     this.handler = handler;
 }
Пример #4
0
 public BinaryParser(Handler handler)
 {
     _handler = handler;
 }
Пример #5
0
 public XmlParser(Handler handler)
 {
     this.handler = handler;
 }
Пример #6
0
 public BinaryParser(Handler handler)
 {
     this.handler = handler;
 }