Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoAddress = errors.New("No address to write to")
ErrNoAddress indicates that the ReadWriter has not read a packet from a remote source and cannot determine where to write packets to
Functions ¶
func CStrLen ¶
CStrLen returns the length of the null-terminated C string contained in the input buffer
func TruncateV2 ¶
Types ¶
type UDPReadWriteCloser ¶
UDPReadWriteCloser implements io.ReadWriter semantics on top of a UDP packet connection
func NewUDPReadWriteCloser ¶
func NewUDPReadWriteCloser(address string, port int) (*UDPReadWriteCloser, error)
NewUDPReadWriteCloser creates a new instance of UDPReadWriter
func (*UDPReadWriteCloser) Close ¶
func (stream *UDPReadWriteCloser) Close() error
Close closes the underlying UDP connection
Click to show internal directories.
Click to hide internal directories.