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
        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);
        }
Ejemplo n.º 3
0
 public BinaryParser(Handler handler)
 {
     this.handler = handler;
 }
Ejemplo n.º 4
0
 public BinaryParser(Handler handler)
 {
     _handler = handler;
 }
Ejemplo n.º 5
0
 public XmlParser(Handler handler)
 {
     this.handler = handler;
 }
Ejemplo n.º 6
0
 public BinaryParser(Handler handler)
 {
     this.handler = handler;
 }