mirror of
https://github.com/debauchee/barrier.git
synced 2024-12-29 22:24:38 +03:00
fee4095624
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.
28 lines
458 B
C++
28 lines
458 B
C++
#ifndef CTCPLISTENSOCKET_H
|
|
#define CTCPLISTENSOCKET_H
|
|
|
|
#include "IListenSocket.h"
|
|
#include "CNetwork.h"
|
|
|
|
//! TCP listen socket
|
|
/*!
|
|
A listen socket using TCP.
|
|
*/
|
|
class CTCPListenSocket : public IListenSocket {
|
|
public:
|
|
CTCPListenSocket();
|
|
~CTCPListenSocket();
|
|
|
|
// ISocket overrides
|
|
virtual void bind(const CNetworkAddress&);
|
|
virtual void close();
|
|
|
|
// IListenSocket overrides
|
|
virtual IDataSocket* accept();
|
|
|
|
private:
|
|
CNetwork::Socket m_fd;
|
|
};
|
|
|
|
#endif
|