package
0.0.0-20230903062148-258f086348c8
Repository: https://github.com/xen0tic/utils.git
Documentation: pkg.go.dev

# Functions

GetTCPSockAddr the structured addresses based on the protocol and raw address.
GetUDPSockAddr the structured addresses based on the protocol and raw address.
GetUnixSockAddr the structured addresses based on the protocol and raw address.
SetIPv4MulticastMembership joins fd to the specified multicast IPv4 address.
SetIPv6MulticastMembership joins fd to the specified multicast IPv6 address.
SetIPv6Only restricts a IPv6 socket to only process IPv6 requests or both IPv4 and IPv6 requests.
SetKeepAlivePeriod sets whether the operating system should send keep-alive messages on the connection and sets period between TCP keep-alive probes.
SetLinger sets the behavior of Close on a connection which still has data waiting to be sent or to be acknowledged.
SetMulticastMembership returns with a socket option function based on the IP version.
SetNoDelay controls whether the operating system should delay packet transmission in hopes of sending fewer packets (Nagle's algorithm).
SetRecvBuffer sets the size of the operating system's receive buffer associated with the connection.
SetReuseAddr enables SO_REUSEADDR option on socket.
SetReuseport enables SO_REUSEPORT option on socket.
SetSendBuffer sets the size of the operating system's transmit buffer associated with the connection.
SockaddrToTCPOrUnixAddr converts a Sockaddr to a net.TCPAddr or net.UnixAddr.
SockaddrToUDPAddr converts a Sockaddr to a net.UDPAddr Returns nil if conversion fails.
TCPSocket calls the internal tcpSocket.
UDPSocket calls the internal udpSocket.
UnixSocket calls the internal udsSocket.

# Structs

Option is used for setting an option on socket.