Exemple #1
0
 /// <exception cref="System.IO.IOException"></exception>
 public NetworkSocket(Socket socket) : base(socket)
 {
 }
Exemple #2
0
 public static bool IsConnected(Socket socket)
 {
     if (socket == null)
     {
         return false;
     }
     return socket.IsConnected();
 }
 /// <exception cref="System.IO.IOException"></exception>
 public virtual ISocket4 Accept()
 {
     Sharpen.Net.Socket sock = Socket().Accept();
     // TODO: check connection permissions here
     return(new NetworkSocket(sock));
 }