Exemplo n.º 1
0
		/// <exception cref="System.IO.IOException"></exception>
		public NetworkSocketBase(Sharpen.Net.Socket socket, string hostName)
		{
			_socket = socket;
			_hostName = hostName;
			_in = _socket.GetInputStream();
			_out = _socket.GetOutputStream();
		}
Exemplo n.º 2
0
 /// <exception cref="System.IO.IOException"></exception>
 public NetworkSocketBase(Sharpen.Net.Socket socket, string hostName)
 {
     _socket   = socket;
     _hostName = hostName;
     _in       = _socket.GetInputStream();
     _out      = _socket.GetOutputStream();
 }
Exemplo n.º 3
0
 public static bool IsConnected(Sharpen.Net.Socket socket)
 {
     if (socket == null)
     {
         return(false);
     }
     return(socket.IsConnected());
 }
Exemplo n.º 4
0
 /// <exception cref="System.IO.IOException"></exception>
 public NetworkSocket(Sharpen.Net.Socket socket) : base(socket)
 {
 }
Exemplo n.º 5
0
 /// <exception cref="System.IO.IOException"></exception>
 public NetworkSocketBase(Sharpen.Net.Socket socket) : this(socket, null)
 {
 }
Exemplo n.º 6
0
 /// <exception cref="System.IO.IOException"></exception>
 public NetworkSocketBase(Socket socket) : this(socket, null)
 {
 }
Exemplo n.º 7
0
 /// <exception cref="System.IO.IOException"></exception>
 public NetworkSocketBase(Socket socket) : this(socket, null)
 {
 }