Categorygithub.com/optimism-java/utp-go
modulepackage
0.0.0-20241110145701-0f0eebf881b3
Repository: https://github.com/optimism-java/utp-go.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

Dial attempts to make an outgoing µTP connection to the given address.
DialContext attempts to make an outgoing µTP connection to the given address.
DialOptions attempts to make an outgoing µTP connection to the given address with the given options.
DialTLS connects to the given network address using net.Dial or utp.Dial as appropriate and then initiates a TLS handshake, returning the resulting TLS connection.
DialTLSOptions connects to the given network address using net.Dial or utp.Dial as appropriate and then initiates a TLS handshake, returning the resulting TLS connection.
DialUTP attempts to make an outgoing µTP connection with the given local and remote address endpoints.
DialUTPOptions attempts to make an outgoing µTP connection with the given local and remote address endpoints and the given options.
Listen creates a listening µTP socket on the local network address.
ListenOptions creates a listening µTP socket on the local network address with the given options.
ListenTLS creates a TLS listener accepting connections on the given network address using net.Listen or utp.Listen as appropriate.
ListenTLSOptions creates a TLS listener accepting connections on the given network address using net.Listen or utp.Listen as appropriate.
ListenUTP creates a listening µTP socket on the local network address.
ListenUTPOptions creates a listening µTP socket on the given local network address and with the given options.
No description provided by the author
No description provided by the author
No description provided by the author
ResolveUTPAddr resolves a µTP address.
WithBufferSize Will set the write buffer size and read buffer size for connection.
WithConnId Connect or Accept with certain connection id.If not specified, a random connection id will be generated.
WithContext creates a connection option which specifies a context to be attached to the connection.
WithLogger creates a connection option which specifies a logger to be attached to the connection.
WithMaxPacketSize Will set the maximum packet size for the connection which will send out size of packet.
No description provided by the author
WithSocketManager can share SocketManager with other conn.
WithTLS creates a connection option which specifies a TLS configuration structure to be attached to the connection.

# Variables

No description provided by the author

# Structs

No description provided by the author
Conn represents a µTP connection.
Listener represents a listening µTP socket.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

Addr represents a µTP address.
ConnectOption is the interface which connection options should implement.
No description provided by the author