mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-09 21:25:55 +08:00
synergy.cpp and server.cpp into cmd/synergyd as synergyd.cpp. Moved and renamed related files. Moved remaining source files into lib/.... Modified and added makefiles as appropriate. Result is that library files are under lib with each library in its own directory and program files are under cmd with each command in its own directory.
33 lines
524 B
C++
33 lines
524 B
C++
#ifndef ISOCKET_H
|
|
#define ISOCKET_H
|
|
|
|
#include "IInterface.h"
|
|
|
|
class CNetworkAddress;
|
|
|
|
//! Generic socket interface
|
|
/*!
|
|
This interface defines the methods common to all network sockets.
|
|
*/
|
|
class ISocket : public IInterface {
|
|
public:
|
|
//! @name manipulators
|
|
//@{
|
|
|
|
//! Bind socket to address
|
|
/*!
|
|
Binds the socket to a particular address.
|
|
*/
|
|
virtual void bind(const CNetworkAddress&) = 0;
|
|
|
|
//! Close socket
|
|
/*!
|
|
Closes the socket. This should flush the output stream.
|
|
*/
|
|
virtual void close() = 0;
|
|
|
|
//@}
|
|
};
|
|
|
|
#endif
|