Exemple #1
0
 public SocketStream(IOLoop loop, Socket sock) : this(loop)
 {
     socket = sock;
     StartTimeout();
     address = ((IPEndPoint)socket.RemoteEndPoint).Address.ToString();
     port    = ((IPEndPoint)socket.RemoteEndPoint).Port;
 }
Exemple #2
0
 public Socket(IOLoop loop)
 {
     if (loop == null)
     {
         throw new ArgumentNullException("loop");
     }
     this.loop = loop;
 }
Exemple #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];
        }
Exemple #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];
        }
Exemple #5
0
 public ManagedLoop(IOLoop owner)
 {
     this.owner = owner;
 }
Exemple #6
0
 public SocketStream(IOLoop loop)
 {
     this.loop = loop;
 }
Exemple #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;
 }