Пример #1
0
func NewServer() *Server {
	return &Server{
		bridge:    core.NewBridge(5),
		listening: false,
	}
}
Пример #2
0
func NewClient() *Client {
	return &Client{
		bridge:        core.NewBridge(0),
		freeChannelId: make(chan uint16, math.MaxUint16),
	}
}