Esempio n. 1
0
 public SocketStream(IOLoop loop, Socket sock) : this(loop)
 {
     socket = sock;
     StartTimeout();
     address = ((IPEndPoint)socket.RemoteEndPoint).Address.ToString();
     port    = ((IPEndPoint)socket.RemoteEndPoint).Port;
 }
Esempio n. 2
0
 public Socket(IOLoop loop)
 {
     if (loop == null)
     {
         throw new ArgumentNullException("loop");
     }
     this.loop = loop;
 }
Esempio n. 3
0
        FileStream(IOLoop loop, System.IO.FileStream stream, int blockSize)
        {
            if (loop == null)
                throw new ArgumentNullException ("loop");
            if (stream == null)
                throw new ArgumentNullException ("stream");

            this.loop = loop;
            this.stream = stream;
            this.readBuffer = new byte [blockSize];
        }
Esempio n. 4
0
        FileStream(IOLoop loop, System.IO.FileStream stream, int blockSize)
        {
            if (loop == null)
            {
                throw new ArgumentNullException("loop");
            }
            if (stream == null)
            {
                throw new ArgumentNullException("stream");
            }

            this.loop       = loop;
            this.stream     = stream;
            this.readBuffer = new byte [blockSize];
        }
Esempio n. 5
0
 public ManagedLoop(IOLoop owner)
 {
     this.owner = owner;
 }
Esempio n. 6
0
 public SocketStream(IOLoop loop)
 {
     this.loop = loop;
 }
Esempio n. 7
0
 Socket(IOLoop loop, System.Net.Sockets.Socket socket) : this(loop)
 {
     this.socket  = socket;
     this.address = ((IPEndPoint)socket.RemoteEndPoint).Address.ToString();
     this.port    = ((IPEndPoint)socket.RemoteEndPoint).Port;
 }