Documentation ¶
Index ¶
- type RUDPServer
- func (conn *RUDPServer) Close()
- func (conn *RUDPServer) Initialize(c *net.UDPConn, s *net.UDPAddr)
- func (conn RUDPServer) IsConnected() bool
- func (conn *RUDPServer) ReadFromUDP(buffer []byte) (n int, verified []uint32, addr *netip.AddrPort, err error)
- func (conn *RUDPServer) WriteToUDP(payload *[]byte, addr netip.AddrPort, reliable bool) (int, uint32, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RUDPServer ¶
type RUDPServer struct {
// contains filtered or unexported fields
}
func (*RUDPServer) Close ¶
func (conn *RUDPServer) Close()
func (*RUDPServer) Initialize ¶
func (conn *RUDPServer) Initialize(c *net.UDPConn, s *net.UDPAddr)
func (RUDPServer) IsConnected ¶
func (conn RUDPServer) IsConnected() bool
func (*RUDPServer) ReadFromUDP ¶
func (*RUDPServer) WriteToUDP ¶
func (conn *RUDPServer) WriteToUDP(payload *[]byte, addr netip.AddrPort, reliable bool) (int, uint32, error)
WriteToUDP acts like Write but sends the packet to an UDPAddr
Click to show internal directories.
Click to hide internal directories.