예제 #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
파일: BinaryParser.cs 프로젝트: 0M3G4/OCTGN
 public BinaryParser(Handler handler)
 {
     _handler = handler;
 }
예제 #5
0
 public XmlParser(Handler handler)
 {
     this.handler = handler;
 }
예제 #6
0
 public BinaryParser(Handler handler)
 {
     this.handler = handler;
 }