Documentation ¶
Index ¶
- Constants
- func Accept(socketFd int32, socketAddr *SockaddrIn) (int32, error)
- func Bind(socketFd int32, socketAddr *SockaddrIn) error
- func Connect(socketFd int32, socketAddr *SockaddrIn) error
- func Htons(v uint16) uint16
- func Listen(socketFd int32, socketBacklog int32) error
- func Recv(socketFd int32, socketReceivedMessage *[]byte, socketBufferLength uint32, ...) (int32, error)
- func Send(socketFd int32, socketMessageToSend []byte, socketFlags int32) (int32, error)
- func Shutdown(socketFd int32, socketFlags int32) error
- func Socket(socketDomain uint16, socketType int32, socketProtocol int32) (int32, error)
- type SockaddrIn
Constants ¶
View Source
const ( PF_INET = uint16(C.PF_INET) SOCK_STREAM = int32(C.SOCK_STREAM) SHUT_RDWR = int32(C.SHUT_RDWR) )
Variables ¶
This section is empty.
Functions ¶
func Bind ¶
func Bind(socketFd int32, socketAddr *SockaddrIn) error
func Connect ¶
func Connect(socketFd int32, socketAddr *SockaddrIn) error
Types ¶
type SockaddrIn ¶
Click to show internal directories.
Click to hide internal directories.