![]() |
Deskflow 1.24.0.365
Keyboard and mouse sharing utility
|
Listen socket interface. More...
#include <IListenSocket.h>


Public Member Functions | |
manipulators | |
| virtual std::unique_ptr< IDataSocket > | accept ()=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. | |
Listen socket interface.
This interface defines the methods common to all network sockets that listen for incoming connections.
|
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.