Documentation
¶
Index ¶
- type Event
- type EventType
- type Server
- func (s *Server) Broadcast(data []byte, reliable bool) error
- func (s *Server) DisconnectPeer(peer enet.Peer, immediate bool)
- func (s *Server) DisconnectPeerWithReason(peer enet.Peer, immediate bool, reason uint32)
- func (s *Server) GetPeerCount() int
- func (s *Server) SendPacket(peer enet.Peer, data []byte, reliable bool) error
- func (s *Server) Service(timeout time.Duration) (*Event, error)
- func (s *Server) Start() error
- func (s *Server) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) DisconnectPeerWithReason ¶
func (*Server) GetPeerCount ¶
func (*Server) SendPacket ¶
Click to show internal directories.
Click to hide internal directories.