예제 #1
0
 /// <exception cref="System.IO.IOException"></exception>
 public NetworkSocket(Socket socket) : base(socket)
 {
 }
예제 #2
0
파일: Platform4.cs 프로젝트: masroore/db4o
 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));
 }