network

package
v0.0.0-...-79e1fa4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientBroadcastReply

type ClientBroadcastReply struct {
	Ok bool
}

type ClientBroadcastReq

type ClientBroadcastReq struct {
	// contains filtered or unexported fields
}

type ClientConnectToReply

type ClientConnectToReply struct {
	Ok bool
	// contains filtered or unexported fields
}

ClientConnectToReply when rpc server reply this message, target vpn node is ready for idc.dail

type ClientConnectToReq

type ClientConnectToReq struct {
	// contains filtered or unexported fields
}

type ClientInfo

type ClientInfo struct {
	Ip   string
	Mac  string
	Mask string
	Addr net.Addr
}

type ClientOnConnectToReply

type ClientOnConnectToReply struct {
	Ok bool
}

type ClientOnConnectToReq

type ClientOnConnectToReq struct {
	// contains filtered or unexported fields
}

type ClientQueryOthersReply

type ClientQueryOthersReply struct {
	Clients []ClientInfo
}

type ClientQueryOthersReq

type ClientQueryOthersReq struct {
}

type ClientRegReply

type ClientRegReply struct {
	Ok bool
}

type ClientRegReq

type ClientRegReq struct {
	NodeName string
	Ip       string
	Mac      string
	Mask     string
}

type ClientUnRegReply

type ClientUnRegReply struct {
	Ok bool
}

type ClientUnRegReq

type ClientUnRegReq struct {
	Ok bool
}

type IceAgent

type IceAgent struct {
	// contains filtered or unexported fields
}

func NewIceAgent

func NewIceAgent(stunAddr string, turnAddr string, turnUser string, turnPwd string) (*IceAgent, error)

func (*IceAgent) Accept

func (i *IceAgent) Accept() (*ice.Conn, error)

func (*IceAgent) Dial

func (i *IceAgent) Dial() (*ice.Conn, error)

func (*IceAgent) GetLocalSDP

func (i *IceAgent) GetLocalSDP() (IceSDP, error)

func (*IceAgent) SetRemoteSDP

func (i *IceAgent) SetRemoteSDP(sdp IceSDP) error

type IceSDP

type IceSDP struct {
	// contains filtered or unexported fields
}

type ServerBroadcastNotify

type ServerBroadcastNotify struct {
	// contains filtered or unexported fields
}

type ServerConnectToNotify

type ServerConnectToNotify struct {
	Ok bool
	// contains filtered or unexported fields
}

type VPNCommandType

type VPNCommandType int32

VPNCommandType represents the command type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL