Documentation
¶
Overview ¶
Package sysnet is a point-c network for the host network.
Index ¶
- func CaddyListen[T any](ctx context.Context, addr net.Addr) (v T, err error)
- type SysDialer
- type Sysnet
- func (s *Sysnet) CaddyModule() caddy.ModuleInfo
- func (s *Sysnet) Cleanup() error
- func (s *Sysnet) Dialer(_ net.IP, port uint16) point_c.Dialer
- func (s *Sysnet) Listen(addr *net.TCPAddr) (net.Listener, error)
- func (s *Sysnet) ListenPacket(addr *net.UDPAddr) (net.PacketConn, error)
- func (s *Sysnet) LocalAddr() net.IP
- func (s *Sysnet) Provision(c caddy.Context) error
- func (s *Sysnet) Start(fn point_c.RegisterFunc) error
- func (s *Sysnet) UnmarshalCaddyfile(d *caddyfile.Dispenser) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SysDialer ¶
type SysDialer struct {
// contains filtered or unexported fields
}
SysDialer allows dialing TCP and UDP connections on the system.
func (*SysDialer) DialPacket ¶
DialPacket dials the given address using UDP.
type Sysnet ¶
type Sysnet struct {
Hostname configvalues.Hostname `json:"hostname"`
DialAddr configvalues.ResolvedIP `json:"dial-addr"`
Local configvalues.ResolvedIP `json:"local"`
// contains filtered or unexported fields
}
Sysnet is a point-c network that can dial and listen on the host system.
func (*Sysnet) CaddyModule ¶
func (s *Sysnet) CaddyModule() caddy.ModuleInfo
CaddyModule implements caddy.Module.
func (*Sysnet) ListenPacket ¶
ListenPacket listens on the given address using UDP.
func (*Sysnet) Provision ¶
Provision implements caddy.Provision.
Click to show internal directories.
Click to hide internal directories.