public void tcp_bind(UvTcpHandle handle, ref SockAddr addr, int flags) { handle.Validate(); ThrowIfErrored(_uv_tcp_bind(handle, ref addr, flags)); if (PlatformApis.IsWindows) { tcp_bind_windows_extras(handle); } }
public static extern int uv_tcp_getpeername(UvTcpHandle handle,out SockAddr name,ref int namelen);
public static extern int uv_ip6_addr(string ip,int port,out SockAddr addr);
public static extern void uv_tcp_connect(UvConnectRequest req,UvTcpHandle handle,ref SockAddr addr,uv_connect_cb cb);
public static extern int uv_tcp_bind(UvTcpHandle handle,ref SockAddr addr,int flags);
public void tcp_getpeername(UvTcpHandle handle, out SockAddr addr, ref int namelen) { handle.Validate(); ThrowIfErrored(_uv_tcp_getpeername(handle, out addr, ref namelen)); }
public void ip6_addr(string ip, int port, out SockAddr addr, out Exception error) { Check(_uv_ip6_addr(ip, port, out addr), out error); }
public void tcp_connect(UvConnectRequest req, UvTcpHandle handle, ref SockAddr addr, uv_connect_cb cb) { req.Validate(); handle.Validate(); _uv_tcp_connect(req, handle, ref addr, cb); }