public SLSocket(AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType) : base(addressFamily, socketType, protocolType) { _socket = new Socket((System.Net.Sockets.AddressFamily)(int) addressFamily, (System.Net.Sockets.SocketType)(int) socketType, (System.Net.Sockets.ProtocolType)(int) protocolType); }
protected override ISocket GetISocket(AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType) { return(new WinSocket(addressFamily, socketType, protocolType)); }
protected override ISocket GetISocket(CommLiby.SocketLib.AddressFamily addressFamily, CommLiby.SocketLib.SocketType socketType, CommLiby.SocketLib.ProtocolType protocolType) { return(new SLSocket(addressFamily, socketType, protocolType)); }