Documentation ¶
Index ¶
- Constants
- func Accept(a1 int, a2 *SockAddr, a3 *int) int
- func Bind(fd int, addr *SockAddr, sz int) int
- func GetHostname(buf *byte, sz int) int
- func Htonl(v uint32) uint32
- func Htons(v uint16) uint16
- func Listen(a1, a2 int32) int32
- func Ntoa(a Address) *byte
- func Ntohl(v uint32) uint32
- func Ntohs(v uint16) uint16
- func Ntop(a1 int32, a2 unsafe.Pointer, a3 *byte, a4 uint32) *byte
- func Pton(a1 int32, a2 *byte, a3 unsafe.Pointer) *byte
- func Recv(a1 int32, a2 *byte, a3 uint32, a4 int32) int32
- func RecvFrom(a1 int32, a2 *byte, a3 uint32, a4 int32, a5 *SockAddr, a6 *int) int32
- func Send(a1 int32, a2 *byte, a3 int32, a4 int32) int32
- func SendTo(a1 int32, a2 *byte, a3 uint32, a4 int32, a5 *SockAddr, a6 int) int32
- func SetSockOpt(fd int, level int, name int, val *byte, sz int) int
- func Shutdown(a1, a2 int32) int32
- func Socket(domain, typ, proto int) int
- type Addr
- type Address
- type Handle
- type HostEnt
- type Port
- type SockAddr
- type SockAddrInet
Constants ¶
View Source
const ( AF_INET = 2 SOCK_STREAM = 1 SOCK_DGRAM = 2 SOL_SOCKET = uint16(0xffff) SO_BROADCAST = 0x20 )
Variables ¶
This section is empty.
Functions ¶
func GetHostname ¶
Types ¶
type HostEnt ¶
func GetHostByName ¶
Click to show internal directories.
Click to hide internal directories.