Documentation ¶
Index ¶
- Variables
- func BGCleaner()
- func CalleeService(secure bool, sigport int, callerPort int, autoAnswer string)
- func CallerService(secure bool, callerport int, sigport int)
- func CreateNewKeys() (string, string)
- func GkvCreate()
- func GkvInit()
- func GkvSet(key string, user UserInfo)
- func HostAddrIP4(hostaddr string) net.IP
- func RtcSignaling(secure bool, sigport int, stunport int, stunhost string, setRingtone string)
- func StoreNewKeys(calleeKey string, callerKey string)
- func StunUDP(hostaddr string, port int)
- func UdpProxy(hostAddr string, addr string, port string, sessionNumber int, proxyNumber int) (*net.UDPAddr, error)
- func UdpProxyWorker(c *net.UDPConn, target string, sessionNumber int, proxyNumber int, ...)
- func WsHandler(cws *websocket.Conn)
- func WsHandlerCallee(cws *websocket.Conn)
- func WsHandlerCaller(cws *websocket.Conn)
- func WsSessionHandler(cws *websocket.Conn, done chan bool)
- func WsSessionHandlerCallee(cws *websocket.Conn, doneWsSessionHandlerCallee chan bool)
- func WsSessionHandlerCaller(cws *websocket.Conn, doneWsSessionHandler chan bool)
- type UserInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var C *gkvlite.Collection
View Source
var CalleeMap = make(map[string]*websocket.Conn, maxCallees)
View Source
var F *os.File
View Source
var MakeKeyMap = make(map[string]string, maxMakeKeys)
View Source
var S *gkvlite.Store
View Source
var TAG = "CallerService"
View Source
var TAG2 = "RtcSignaling"
View Source
var TAG3 = "CalleeService"
View Source
var TAG5 = "UdpProxy"
View Source
var TAG6 = "CalleePersistKey"
Functions ¶
func CalleeService ¶
func CallerService ¶
func CreateNewKeys ¶
func HostAddrIP4 ¶
func RtcSignaling ¶
func StoreNewKeys ¶
func UdpProxyWorker ¶
func WsHandlerCallee ¶
handle all callee websockets sessions
func WsHandlerCaller ¶
handle all caller websockets sessions
func WsSessionHandler ¶
handle one complete websockets session
func WsSessionHandlerCallee ¶
handle one complete websockets session
func WsSessionHandlerCaller ¶
handle one complete websockets session
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.