Versions in this module Expand all Collapse all v1 v1.0.2 May 6, 2023 Changes in this version + type Client interface + Close func() + Open func() error + Write func(*Packet) error + type ClientImplOnRTP struct + func NewRtpClient(id string, address string) *ClientImplOnRTP + func (c *ClientImplOnRTP) Close() + func (c *ClientImplOnRTP) Open() error + func (c *ClientImplOnRTP) Write(data []byte) error + type Packet struct + Data []byte + Type PacketType + func NewPacket(t PacketType, data []byte) *Packet + func (p *Packet) ToString() string + type PacketType int + const PacketTypeConnectLost + const PacketTypeConnected + const PacketTypeData + func (p PacketType) ToString() string + type TcpClient struct + func NewTcpClient(address string) *TcpClient + func (c *TcpClient) Close() + func (c *TcpClient) Open() error + func (c *TcpClient) Write(data *Packet) error