public void TcpInit(LoopHandle loopHandle, ListenHandle listenHandle) { CheckError(_uv_tcp_init(loopHandle, listenHandle)); }
public void TcpBind(ListenHandle listenHandle, ref Addr addr, int flags) { CheckError(_uv_tcp_bind(listenHandle, ref addr, flags)); }
/// <summary> /// 禁用 nagel 算法以后, 允许很小的包没有延迟立即发送 /// </summary> /// <param name="listenHandle"></param> /// <param name="flag"></param> public void TcpNodealy(ListenHandle listenHandle, bool flag) { CheckError(_uv_tcp_nodelay(listenHandle, flag ? 1 : 0)); }