Public member functions documentation

virtual NzaeApi* acceptConnection()=0
Accepts a new connection.
Returns
NzaeApi
The new API object.
This object must be deleted when complete.
virtual NzaeApi* acceptConnectionFork()=0
Accepts a new connection and fork.
Returns
NzaeApi
The new API object or NULL.
This object must be deleted when complete. Returns NULL in the parent and non-NULL in the new child. The new child is in a new process group.
virtual NzaeApi* acceptConnectionWithTimeout(int timeoutMilliseconds)=0
Accepts a new connection with timeout.
Parameters
timeoutMilliseconds
The timeout value in milliseconds.
Returns
NzaeApi
The new API object or NULL if timeout.
This object must be deleted when complete.
virtual NzaeApi* acceptConnectionWithTimeoutFork(int timeoutMilliseconds)=0
Accepts a new connection and fork with timeout.
Parameters
timeoutMilliseconds
The timeout value in milliseconds.
Returns
NzaeApi
The new API object or NULL if timeout.
This object must be deleted when complete. Returns NULL in the parent and non-NULL in the new child. The new child is in a new process group.
virtual void close()=0
Closes the listener.
virtual NzaeRemoteProtocolCallback* getCallbackHandler()=0
Gets the remote protocol callback handler.
Returns
NzaeRemoteProtocolCallback
The callback handler.
A remote protocol handler class is used to handle remote commands such as stop, status, and ping.
virtual void setCallbackHandler(NzaeRemoteProtocolCallback *handler)=0
Sets the remote protocol callback handler.
Parameters
NzaeRemoteProtocolCallback handler
The remote protocol callback handler.
A remote protocol handler class is used to handle remote commands such as stop, status, and ping.
virtual ~NzaeRemoteProtocol()