Documentation
¶
Overview ¶
github.com/whatap/go-api/common/net
Index ¶
Constants ¶
View Source
const ( UDP_READ_MAX = 64 * 1024 UDP_PACKET_BUFFER = 64 * 1024 UDP_PACKET_BUFFER_CHUNKED_LIMIT = 48 * 1024 UDP_PACKET_CHANNEL_MAX = 255 UDP_PACKET_FLUSH_TIMEOUT = 10 * 1000 UDP_PACKET_HEADER_SIZE = 9 // typ pos 0 UDP_PACKET_HEADER_TYPE_POS = 0 // ver pos 1 UDP_PACKET_HEADER_VER_POS = 1 // len pos 5 UDP_PACKET_HEADER_LEN_POS = 5 UDP_PACKET_SQL_MAX_SIZE = 32768 )
Variables ¶
This section is empty.
Functions ¶
func UdpShutdown ¶
func UdpShutdown()
Types ¶
type UdpClient ¶
type UdpClient struct {
// contains filtered or unexported fields
}
func GetUdpClient ¶
func GetUdpClient() *UdpClient
func (*UdpClient) GetLocalAddr ¶
Click to show internal directories.
Click to hide internal directories.