Exemple #1
0
        public SocketRecevier(System.Net.Sockets.Socket Socket, SocketMessageFactory factory)
        {
            m_Socket = Socket;

            m_ReceivePackages = new List <SocketMessage>();
            m_Spawner         = factory;

            m_ReceiveEndPoint = new IPEndPoint(IPAddress.Any, port: 0);
        }
Exemple #2
0
 public BufferDispenser(EndPoint EndPoint, SocketMessageFactory Spawner)
 {
     m_EndPoint    = EndPoint;
     m_Spawner     = Spawner;
     m_PayloadSize = SocketMessage.GetPayloadSize();
 }
Exemple #3
0
 public BufferDispenser(EndPoint end_point, SocketMessageFactory spawner)
 {
     _EndPoint    = end_point;
     _Spawner     = spawner;
     _PayloadSize = SocketMessage.GetPayloadSize();
 }