/usr/include/bobcat/localserversocket is in libbobcat-dev 4.08.02-2build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | #ifndef INCLUDED_BOBCAT_LOCALSERVERSOCKET_
#define INCLUDED_BOBCAT_LOCALSERVERSOCKET_
#include <string>
#include <bobcat/localsocketbase>
namespace FBB
{
class LocalServerSocket: public LocalSocketBase
{
bool d_unlink;
std::string d_name;
public:
enum Socket
{
KEEP,
UNLINK,
};
LocalServerSocket() = default;
explicit LocalServerSocket(std::string const &name, // 1.f
Socket action = UNLINK);
~LocalServerSocket();
void open(std::string const &name, Socket action = UNLINK);
void listen(size_t backlog = 5, bool blocking = true);
size_t accept();
private:
LocalServerSocket(LocalServerSocket const &other) = delete;
};
inline LocalServerSocket::LocalServerSocket(std::string const &name,
Socket action)
{
open(name, action);
}
} // FBB
#endif
|