Versions in this module Expand all Collapse all v0 v0.1.0 Oct 14, 2024 Changes in this version + const ApplicationOK + const EstablishConnectionCmd + const GetRoutesReqCmd + const Name + const Networkv4 + const Networkv6 + const TransportICMP + const TransportTCP + const TransportUDP + type ConnectResponse struct + Established bool + type Data struct + Body []byte + Command string + type Decoder struct + func NewDecoder[T any](rd io.ReadCloser) Decoder[T] + func (d Decoder[T]) Close() error + func (d Decoder[T]) Decode() (T, error) + type Encoder struct + func NewEncoder[T any](wr io.WriteCloser) Encoder[T] + func (e Encoder[T]) Close() error + func (e Encoder[T]) Encode(t T) error + type GetRoutesResp struct + Name string + Routes []string + type IPAddressWithPortProtocol struct + IP net.IP + Network uint8 + Port uint16 + Protocol uint8 + func Decode(encoded []byte) (*IPAddressWithPortProtocol, error) + func (ipStruct *IPAddressWithPortProtocol) Encode() ([]byte, error)