Ejemplo n.º 1
0
 protected internal MpxListener(MpxServerTransport transport,
                                IPEndPoint listenEndPoint,
                                MpxSocketReceiveAction <MpxServerTransport> socketReceiveAction)
 {
     m_Transport           = transport;
     m_EndPoint            = listenEndPoint;
     m_SocketReceiveAction = socketReceiveAction;
 }
Ejemplo n.º 2
0
 public clientSiteState(MpxServerTransport transport, ClientSite site)
 {
     this.Transport = transport;
     this.Site      = site;
     m_Sockets      = new List <MpxServerSocket>();
     OutQueues      = new ConcurrentQueue <ResponseMsg> [GENERATIONS];
     for (var i = 0; i < GENERATIONS; i++)
     {
         OutQueues[i] = new ConcurrentQueue <ResponseMsg>();
     }
 }
Ejemplo n.º 3
0
 internal MpxWinListener(MpxServerTransport transport,
                         IPEndPoint listenEndPoint,
                         MpxSocketReceiveAction <MpxServerTransport> socketReceiveAction) : base(transport, listenEndPoint, socketReceiveAction)
 {
     m_Active      = true;
     m_TcpListener = new TcpListener(listenEndPoint);
     m_TcpListener.ExclusiveAddressUse = true;
     m_TcpListener.Start();
     m_Thread      = new Thread(listenerThreadSpin);
     m_Thread.Name = THREAD_NAME;
     m_Thread.Start();
 }
Ejemplo n.º 4
0
        protected internal override ServerTransport OpenServerEndpoint(ServerEndPoint epoint)
        {
            var cfg = ConfigNode.NavigateSection(CONFIG_SERVER_TRANSPORT_SECTION);

            if (!cfg.Exists)
            {
                cfg = ConfigNode;
            }

            var ipep      = MpxBinding.ToIPEndPoint(epoint.Node);
            var transport = new MpxServerTransport(this, epoint, ipep.Address, ipep.Port);

            transport.Configure(cfg);
            transport.Start();

            return(transport);
        }
Ejemplo n.º 5
0
 public override MpxListener MakeListener(MpxServerTransport transport,
                                          IPEndPoint listenEndPoint,
                                          MpxSocketReceiveAction <MpxServerTransport> socketReceiveAction)
 {
     return(new MpxWinListener(transport, listenEndPoint, socketReceiveAction));
 }
Ejemplo n.º 6
0
 MakeListener(MpxServerTransport transport,
              IPEndPoint listenEndPoint,
              MpxSocketReceiveAction <MpxServerTransport> socketReceiveAction);