package net
import _ "unsafe"
import "unsafe"
const (
_C_AF_INET = ( _Ciconst_AF_INET )
_C_AF_INET6 = ( _Ciconst_AF_INET6 )
_C_AF_UNSPEC = ( _Ciconst_AF_UNSPEC )
_C_EAI_AGAIN = ( _Ciconst_EAI_AGAIN )
_C_EAI_NODATA = ( _Ciconst_EAI_NODATA )
_C_EAI_NONAME = ( _Ciconst_EAI_NONAME )
_C_EAI_OVERFLOW = ( _Ciconst_EAI_OVERFLOW )
_C_EAI_SYSTEM = ( _Ciconst_EAI_SYSTEM )
_C_IPPROTO_TCP = ( _Ciconst_IPPROTO_TCP )
_C_IPPROTO_UDP = ( _Ciconst_IPPROTO_UDP )
_C_SOCK_DGRAM = ( _Ciconst_SOCK_DGRAM )
_C_SOCK_STREAM = ( _Ciconst_SOCK_STREAM )
)
type (
_C_char = _Ctype_char
_C_uchar = _Ctype_uchar
_C_int = _Ctype_int
_C_uint = _Ctype_uint
_C_socklen_t = _Ctype_socklen_t
_C_struct_addrinfo = _Ctype_struct_addrinfo
_C_struct_sockaddr = _Ctype_struct_sockaddr
)
func _C_GoString (p *_C_char ) string { return ( _Cfunc_GoString )(p ) }
func _C_malloc (n uintptr ) unsafe .Pointer { return ( _Cfunc__CMalloc )( _Ctype_size_t (n )) }
func _C_free (p unsafe .Pointer ) { func () { _cgo0 := p ; _cgoCheckPointer (_cgo0 , nil ); _Cfunc_free (_cgo0 ); }() }
func _C_ai_addr (ai *_C_struct_addrinfo ) **_C_struct_sockaddr { return &ai .ai_addr }
func _C_ai_family (ai *_C_struct_addrinfo ) *_C_int { return &ai .ai_family }
func _C_ai_flags (ai *_C_struct_addrinfo ) *_C_int { return &ai .ai_flags }
func _C_ai_next (ai *_C_struct_addrinfo ) **_C_struct_addrinfo { return &ai .ai_next }
func _C_ai_protocol (ai *_C_struct_addrinfo ) *_C_int { return &ai .ai_protocol }
func _C_ai_socktype (ai *_C_struct_addrinfo ) *_C_int { return &ai .ai_socktype }
func _C_freeaddrinfo (ai *_C_struct_addrinfo ) {
func () { _cgo0 := ai ; _cgoCheckPointer (_cgo0 , nil ); _Cfunc_freeaddrinfo (_cgo0 ); }()
}
func _C_gai_strerror (eai _C_int ) string {
return ( _Cfunc_GoString )(( _Cfunc_gai_strerror )(eai ))
}
func _C_getaddrinfo (hostname , servname *_C_char , hints *_C_struct_addrinfo , res **_C_struct_addrinfo ) (int , error ) {
x , err := func () (_Ctype_int , error ){ var _cgo0 *_Ctype_char = hostname ; var _cgo1 *_Ctype_char = servname ; _cgo2 := hints ; _cgo3 := res ; _cgoCheckPointer (_cgo2 , nil ); _cgoCheckPointer (_cgo3 , nil ); return _C2func_getaddrinfo (_cgo0 , _cgo1 , _cgo2 , _cgo3 ); }()
return int (x ), err
}
The pages are generated with Golds v0.6.7 . (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu .
PR and bug reports are welcome and can be submitted to the issue list .
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds .