Beispiel #1
0
 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);
 }
Beispiel #2
0
 protected override ISocket GetISocket(AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType)
 {
     return(new WinSocket(addressFamily, socketType, protocolType));
 }
Beispiel #3
0
 protected override ISocket GetISocket(CommLiby.SocketLib.AddressFamily addressFamily, CommLiby.SocketLib.SocketType socketType, CommLiby.SocketLib.ProtocolType protocolType)
 {
     return(new SLSocket(addressFamily, socketType, protocolType));
 }