Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UDPServerContext ¶
type UDPServerContext struct { TrackedRemoteAddr sync.Map //Key:uint16 Channel ClientLogicConnection sync.Map //Key:UDPAddr Client TxToClient chan UDPServerTxToClientTraffic TxToClientData chan UDPServerTxToClientDataTraffic RxFromClient chan UDPServerRxFromClientTraffic ChannelNumberGenerator *channelNumberFinder.ChannelNumberFinder GetTransmitLayerSentRecvStatsInt interfaces.GetTransmitLayerSentRecvStats // contains filtered or unexported fields }
func UDPServer ¶
func UDPServer(context context.Context, TxToClient chan UDPServerTxToClientTraffic, TxToClientData chan UDPServerTxToClientDataTraffic, RxFromClient chan UDPServerRxFromClientTraffic, GetTransmitLayerSentRecvStatsInt interfaces.GetTransmitLayerSentRecvStats) *UDPServerContext
func (*UDPServerContext) IsChannelUsed ¶
func (uscc *UDPServerContext) IsChannelUsed(u uint16) bool
func (*UDPServerContext) RxFromClientWorker ¶
func (uscc *UDPServerContext) RxFromClientWorker()
Must in new goroutine, ALWAYS block!
type UDPServerContext_Opts ¶
type UDPServerContext_Opts struct {
UDPTimeoutTime int
}
type UDPServerRxFromClientTraffic ¶
type UDPServerRxFromClientTraffic interfaces.TrafficWithChannelTag
type UDPServerTxToClientDataTraffic ¶
type UDPServerTxToClientDataTraffic interfaces.TrafficWithChannelTag
type UDPServerTxToClientTraffic ¶
type UDPServerTxToClientTraffic interfaces.TrafficWithChannelTag
Click to show internal directories.
Click to hide internal directories.