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

Generic socket interface. More...

#include <ISocket.h>

Inheritance diagram for ISocket:
Collaboration diagram for ISocket:

Public Member Functions

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.
Public Member Functions inherited from IInterface
virtual ~IInterface ()=default
 Interface destructor does nothing.

Detailed Description

Generic socket interface.

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

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 IDataSocket, IListenSocket, TCPListenSocket, and TCPSocket.

◆ close()

virtual void ISocket::close ( )
pure virtual

Close socket.

Closes the socket. This should flush the output stream.

Implemented in IDataSocket, IListenSocket, 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, IListenSocket, TCPListenSocket, and TCPSocket.


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