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

Generic socket interface. More...

#include <ISocket.h>

Inheritance diagram for ISocket:

Public Member Functions

virtual ~ISocket ()=default
manipulators
virtual void bind (const NetworkAddress &)=0
 Bind socket to address.
virtual void close ()=0
 Close socket.
accessors
virtual void * getEventTarget () const =0
 Get event target.

Detailed Description

Generic socket interface.

This interface defines the methods common to all network sockets. Generated events use this as the target.

Constructor & Destructor Documentation

◆ ~ISocket()

virtual ISocket::~ISocket ( )
virtualdefault

Member Function Documentation

◆ bind()

virtual void ISocket::bind ( const NetworkAddress & )
pure virtual

Bind socket to address.

Binds the socket to a particular address.

Implemented in TCPListenSocket, and TCPSocket.

◆ close()

virtual void ISocket::close ( )
pure virtual

Close socket.

Closes the socket. This should flush the output stream.

Implemented in IDataSocket, SecureSocket, TCPListenSocket, and TCPSocket.

◆ getEventTarget()

virtual void * ISocket::getEventTarget ( ) const
pure virtual

Get event target.

Returns the event target for events generated by this socket.

Implemented in IDataSocket, TCPListenSocket, and TCPSocket.


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