public void tcp_bind(UvTcpHandle handle, ref SockAddr addr, int flags)
 {
     handle.Validate();
     Check(_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 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();
     Check(_uv_tcp_getpeername(handle, out addr, ref namelen));
 }
 public int ip6_addr(string ip, int port, out SockAddr addr, out Exception error)
 {
     return(Check(_uv_ip6_addr(ip, port, out addr), out error));
 }