Example #1
0
        protected BasicSocket(IPAddress ip, SocketType socketType, SocketSide socketSide, SocketEventProvider eventProvider)
        {
            IP       = ip;
            SockType = socketType;
            SockSide = socketSide;
            (EventProvider = eventProvider).ProcessHandler += EventProvider_ProcessHandler;

            ReUse();
        }
Example #2
0
        protected SenderSocket(IPAddress ip, SocketType socketType, SocketSide socketSide, SocketEventProvider eventProvider)
            : base(ip, socketType, socketSide, eventProvider)
        {
            Pack = new Packet();

            if (socketType == SocketType.Stream && socketSide == SocketSide.Server)
            {
                TcpClientSockets = new List <SenderSocket>();
            }
        }
Example #3
0
 public SocketProvider()
 {
     EventProvider = new SocketEventProvider();
 }