Documentation ¶
Index ¶
- Constants
- func Address(host string, port uint16) string
- func AppendDelimeter(raw []byte) []byte
- func GetIdFromAddr(addr *net.Addr) int
- func GetIdFromConn(conn *net.Conn) int
- func GetTcpAddress(host string, port uint16) (addr *net.TCPAddr, err error)
- func GetUdpAddress(host string, port uint16) (addr *net.UDPAddr, err error)
- func GetUnixAddress(host string, port uint16) (addr *net.UnixAddr, err error)
- func TruncateDelimeter(raw []byte) []byte
- type Event
- type EventType
- type EventsToChannel
- type Handler
- type Message
- type Protocol
Constants ¶
View Source
const DefaultDelimiter = 0x00
Variables ¶
This section is empty.
Functions ¶
func AppendDelimeter ¶
func GetIdFromAddr ¶
func GetIdFromConn ¶
func TruncateDelimeter ¶
Types ¶
type EventsToChannel ¶
type EventsToChannel struct {
// contains filtered or unexported fields
}
func NewEventsToChannel ¶
func NewEventsToChannel(messageChannel chan<- Message, eventChannel chan<- Event) *EventsToChannel
func (*EventsToChannel) Connected ¶
func (e2c *EventsToChannel) Connected(id int)
func (*EventsToChannel) Disconnected ¶
func (e2c *EventsToChannel) Disconnected(id int)
func (*EventsToChannel) Received ¶
func (e2c *EventsToChannel) Received(id int, message []byte)
Click to show internal directories.
Click to hide internal directories.