Deskflow 1.24.0.365
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
IListenSocket Class Referenceabstract

Listen socket interface. More...

#include <IListenSocket.h>

Inheritance diagram for IListenSocket:
Collaboration diagram for IListenSocket:

Public Member Functions

manipulators
virtual std::unique_ptr< IDataSocketaccept ()=0
 Accept connection.
Public Member Functions inherited from ISocket
virtual ~ISocket ()=default
virtual void bind (const NetworkAddress &)=0
 Bind socket to address.
virtual void close ()=0
 Close socket.
virtual void * getEventTarget () const =0
 Get event target.

Detailed Description

Listen socket interface.

This interface defines the methods common to all network sockets that listen for incoming connections.

Member Function Documentation

◆ accept()

virtual std::unique_ptr< IDataSocket > IListenSocket::accept ( )
pure virtual

Accept connection.

Accept a connection, returning a socket representing the full-duplex data stream. Returns nullptr if no socket is waiting to be accepted. This is only valid after a call to bind().

Implemented in SecureListenSocket, and TCPListenSocket.


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