Ejemplo 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;
 }
Ejemplo n.º 2
0
 public Socket(IOLoop loop)
 {
     if (loop == null)
     {
         throw new ArgumentNullException("loop");
     }
     this.loop = loop;
 }
Ejemplo 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];
        }
Ejemplo 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];
        }
Ejemplo n.º 5
0
 public ManagedLoop(IOLoop owner)
 {
     this.owner = owner;
 }
Ejemplo n.º 6
0
 public SocketStream(IOLoop loop)
 {
     this.loop = loop;
 }
Ejemplo 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;
 }