package net
import "unsafe"
import "syscall"
import _cgopackage "runtime/cgo"
type _ _cgopackage .Incomplete
var _ syscall .Errno
func _Cgo_ptr (ptr unsafe .Pointer ) unsafe .Pointer { return ptr }
var _Cgo_always_false bool
func _Cgo_use (interface {})
type _Ctype__GoString_ string
type _Ctype___socklen_t = _Ctype_uint
type _Ctype_char int8
type _Ctype_int int32
type _Ctype_intgo = _Ctype_ptrdiff_t
type _Ctype_long int64
type _Ctype_ptrdiff_t = _Ctype_long
type _Ctype_sa_family_t = _Ctype_ushort
type _Ctype_size_t = _Ctype_ulong
type _Ctype_socklen_t = _Ctype___socklen_t
type _Ctype_struct_addrinfo struct {
ai_flags _Ctype_int
ai_family _Ctype_int
ai_socktype _Ctype_int
ai_protocol _Ctype_int
ai_addrlen _Ctype_socklen_t
ai_addr *_Ctype_struct_sockaddr
ai_canonname *_Ctype_char
ai_next *_Ctype_struct_addrinfo
}
type _Ctype_struct_sockaddr struct {
sa_family _Ctype_sa_family_t
sa_data [14 ]_Ctype_char
}
type _Ctype_uchar uint8
type _Ctype_uint uint32
type _Ctype_ulong uint64
type _Ctype_ushort uint16
type _Ctype_void [0 ]byte
func _cgo_runtime_cgocall (unsafe .Pointer , uintptr ) int32
func _cgoCheckPointer (interface {}, interface {})
func _cgoCheckResult (interface {})
const _Ciconst_AF_INET = 0x2
const _Ciconst_AF_INET6 = 0xa
const _Ciconst_AF_UNSPEC = 0x0
const _Ciconst_AI_ALL = 0x10
const _Ciconst_AI_CANONNAME = 0x2
const _Ciconst_AI_V4MAPPED = 0x8
const _Ciconst_EAI_AGAIN = -0x3
const _Ciconst_EAI_NODATA = -0x5
const _Ciconst_EAI_NONAME = -0x2
const _Ciconst_EAI_OVERFLOW = -0xc
const _Ciconst_EAI_SYSTEM = -0xb
const _Ciconst_IPPROTO_TCP = 0x6
const _Ciconst_IPPROTO_UDP = 0x11
const _Ciconst_NI_NAMEREQD = 0x8
const _Ciconst_SOCK_DGRAM = 0x2
const _Ciconst_SOCK_STREAM = 0x1
var __cgofn__cgo_9c8efe9babca_C2func_getaddrinfo byte
var _cgo_9c8efe9babca_C2func_getaddrinfo = unsafe .Pointer (&__cgofn__cgo_9c8efe9babca_C2func_getaddrinfo )
func _C2func_getaddrinfo (p0 *_Ctype_char , p1 *_Ctype_char , p2 *_Ctype_struct_addrinfo , p3 **_Ctype_struct_addrinfo ) (r1 _Ctype_int , r2 error ) {
errno := _cgo_runtime_cgocall (_cgo_9c8efe9babca_C2func_getaddrinfo , uintptr (unsafe .Pointer (&p0 )))
if errno != 0 { r2 = syscall .Errno (errno ) }
if _Cgo_always_false {
_Cgo_use (p0 )
_Cgo_use (p1 )
_Cgo_use (p2 )
_Cgo_use (p3 )
}
return
}
var __cgofn__cgo_9c8efe9babca_C2func_getnameinfo byte
var _cgo_9c8efe9babca_C2func_getnameinfo = unsafe .Pointer (&__cgofn__cgo_9c8efe9babca_C2func_getnameinfo )
func _C2func_getnameinfo (p0 *_Ctype_struct_sockaddr , p1 _Ctype_socklen_t , p2 *_Ctype_char , p3 _Ctype_socklen_t , p4 *_Ctype_char , p5 _Ctype_socklen_t , p6 _Ctype_int ) (r1 _Ctype_int , r2 error ) {
errno := _cgo_runtime_cgocall (_cgo_9c8efe9babca_C2func_getnameinfo , uintptr (unsafe .Pointer (&p0 )))
if errno != 0 { r2 = syscall .Errno (errno ) }
if _Cgo_always_false {
_Cgo_use (p0 )
_Cgo_use (p1 )
_Cgo_use (p2 )
_Cgo_use (p3 )
_Cgo_use (p4 )
_Cgo_use (p5 )
_Cgo_use (p6 )
}
return
}
var __cgofn__cgo_9c8efe9babca_C2func_res_search byte
var _cgo_9c8efe9babca_C2func_res_search = unsafe .Pointer (&__cgofn__cgo_9c8efe9babca_C2func_res_search )
func _C2func_res_search (p0 *_Ctype_char , p1 _Ctype_int , p2 _Ctype_int , p3 *_Ctype_uchar , p4 _Ctype_int ) (r1 _Ctype_int , r2 error ) {
errno := _cgo_runtime_cgocall (_cgo_9c8efe9babca_C2func_res_search , uintptr (unsafe .Pointer (&p0 )))
if errno != 0 { r2 = syscall .Errno (errno ) }
if _Cgo_always_false {
_Cgo_use (p0 )
_Cgo_use (p1 )
_Cgo_use (p2 )
_Cgo_use (p3 )
_Cgo_use (p4 )
}
return
}
func _cgo_runtime_gostring (*_Ctype_char ) string
func _Cfunc_GoString (p *_Ctype_char ) string {
return _cgo_runtime_gostring (p )
}
func _Cfunc__CMalloc (n _Ctype_size_t ) unsafe .Pointer {
return _cgo_cmalloc (uint64 (n ))
}
var __cgofn__cgo_9c8efe9babca_Cfunc_free byte
var _cgo_9c8efe9babca_Cfunc_free = unsafe .Pointer (&__cgofn__cgo_9c8efe9babca_Cfunc_free )
func _Cfunc_free (p0 unsafe .Pointer ) (r1 _Ctype_void ) {
_cgo_runtime_cgocall (_cgo_9c8efe9babca_Cfunc_free , uintptr (unsafe .Pointer (&p0 )))
if _Cgo_always_false {
_Cgo_use (p0 )
}
return
}
var __cgofn__cgo_9c8efe9babca_Cfunc_freeaddrinfo byte
var _cgo_9c8efe9babca_Cfunc_freeaddrinfo = unsafe .Pointer (&__cgofn__cgo_9c8efe9babca_Cfunc_freeaddrinfo )
func _Cfunc_freeaddrinfo (p0 *_Ctype_struct_addrinfo ) (r1 _Ctype_void ) {
_cgo_runtime_cgocall (_cgo_9c8efe9babca_Cfunc_freeaddrinfo , uintptr (unsafe .Pointer (&p0 )))
if _Cgo_always_false {
_Cgo_use (p0 )
}
return
}
var __cgofn__cgo_9c8efe9babca_Cfunc_gai_strerror byte
var _cgo_9c8efe9babca_Cfunc_gai_strerror = unsafe .Pointer (&__cgofn__cgo_9c8efe9babca_Cfunc_gai_strerror )
func _Cfunc_gai_strerror (p0 _Ctype_int ) (r1 *_Ctype_char ) {
_cgo_runtime_cgocall (_cgo_9c8efe9babca_Cfunc_gai_strerror , uintptr (unsafe .Pointer (&p0 )))
if _Cgo_always_false {
_Cgo_use (p0 )
}
return
}
var __cgofn__cgo_9c8efe9babca_Cfunc_getaddrinfo byte
var _cgo_9c8efe9babca_Cfunc_getaddrinfo = unsafe .Pointer (&__cgofn__cgo_9c8efe9babca_Cfunc_getaddrinfo )
func _Cfunc_getaddrinfo (p0 *_Ctype_char , p1 *_Ctype_char , p2 *_Ctype_struct_addrinfo , p3 **_Ctype_struct_addrinfo ) (r1 _Ctype_int ) {
_cgo_runtime_cgocall (_cgo_9c8efe9babca_Cfunc_getaddrinfo , uintptr (unsafe .Pointer (&p0 )))
if _Cgo_always_false {
_Cgo_use (p0 )
_Cgo_use (p1 )
_Cgo_use (p2 )
_Cgo_use (p3 )
}
return
}
var __cgofn__cgo_9c8efe9babca_Cfunc_getnameinfo byte
var _cgo_9c8efe9babca_Cfunc_getnameinfo = unsafe .Pointer (&__cgofn__cgo_9c8efe9babca_Cfunc_getnameinfo )
func _Cfunc_getnameinfo (p0 *_Ctype_struct_sockaddr , p1 _Ctype_socklen_t , p2 *_Ctype_char , p3 _Ctype_socklen_t , p4 *_Ctype_char , p5 _Ctype_socklen_t , p6 _Ctype_int ) (r1 _Ctype_int ) {
_cgo_runtime_cgocall (_cgo_9c8efe9babca_Cfunc_getnameinfo , uintptr (unsafe .Pointer (&p0 )))
if _Cgo_always_false {
_Cgo_use (p0 )
_Cgo_use (p1 )
_Cgo_use (p2 )
_Cgo_use (p3 )
_Cgo_use (p4 )
_Cgo_use (p5 )
_Cgo_use (p6 )
}
return
}
var __cgofn__cgo_9c8efe9babca_Cfunc_res_search byte
var _cgo_9c8efe9babca_Cfunc_res_search = unsafe .Pointer (&__cgofn__cgo_9c8efe9babca_Cfunc_res_search )
func _Cfunc_res_search (p0 *_Ctype_char , p1 _Ctype_int , p2 _Ctype_int , p3 *_Ctype_uchar , p4 _Ctype_int ) (r1 _Ctype_int ) {
_cgo_runtime_cgocall (_cgo_9c8efe9babca_Cfunc_res_search , uintptr (unsafe .Pointer (&p0 )))
if _Cgo_always_false {
_Cgo_use (p0 )
_Cgo_use (p1 )
_Cgo_use (p2 )
_Cgo_use (p3 )
_Cgo_use (p4 )
}
return
}
var __cgofn__cgo_9c8efe9babca_Cfunc__Cmalloc byte
var _cgo_9c8efe9babca_Cfunc__Cmalloc = unsafe .Pointer (&__cgofn__cgo_9c8efe9babca_Cfunc__Cmalloc )
func runtime_throw (string )
func _cgo_cmalloc (p0 uint64 ) (r1 unsafe .Pointer ) {
_cgo_runtime_cgocall (_cgo_9c8efe9babca_Cfunc__Cmalloc , uintptr (unsafe .Pointer (&p0 )))
if r1 == nil {
runtime_throw ("runtime: C malloc failed" )
}
return
}
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 .