Cuberite
A lightweight, fast and extensible game server for Minecraft
Public Member Functions | Friends | List of all members
cServerHandle Class Referenceabstract

Interface that provides the methods available on a listening server socket. More...

#include <Network.h>

Inheritance diagram for cServerHandle:
Inheritance graph
[legend]

Public Member Functions

virtual void Close (void)=0
 Stops the server, no more incoming connections will be accepted. More...
 
virtual bool IsListening (void) const =0
 Returns true if the server has been started correctly and is currently listening for incoming connections. More...
 
virtual ~cServerHandle ()
 

Friends

class cNetwork
 

Detailed Description

Interface that provides the methods available on a listening server socket.

Definition at line 154 of file Network.h.

Constructor & Destructor Documentation

◆ ~cServerHandle()

virtual cServerHandle::~cServerHandle ( )
inlinevirtual

Definition at line 160 of file Network.h.

Member Function Documentation

◆ Close()

virtual void cServerHandle::Close ( void  )
pure virtual

Stops the server, no more incoming connections will be accepted.

All current connections will be shut down (cTCPLink::Shutdown()).

Implemented in cServerHandleImpl.

◆ IsListening()

virtual bool cServerHandle::IsListening ( void  ) const
pure virtual

Returns true if the server has been started correctly and is currently listening for incoming connections.

Implemented in cServerHandleImpl.

Friends And Related Function Documentation

◆ cNetwork

friend class cNetwork
friend

Definition at line 156 of file Network.h.


The documentation for this class was generated from the following file: