Exemple #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="loop"></param>
 /// <remarks>Handle type is <typeparamref name="Libuv.uv_tcp_t"/> that is a subclass of <typeparamref name="Libuv.uv_stream_t"/></remarks>
 protected TcpSocket(Loop loop)
     : base(loop, uv_handle_type.UV_TCP)
 {
     CheckError(Uvi.uv_tcp_init(this.Loop.Handle, this.Handle));
 }
Exemple #2
0
 public TcpServer(Loop loop)
     : base(loop, uv_handle_type.UV_TCP)
 {
     this.BackLog = DefaultBackLog;
     CheckError(Uvi.uv_tcp_init(this.Loop.Handle, this.Handle));
 }