1#if defined(__APPLE__) || defined(__linux__) || defined(__unix__) || defined(_POSIX_VERSION) || defined(__ANDROID__)
3#ifndef TENDUKE_OSA_UNX_UNIXSOCKET_H
4#define TENDUKE_OSA_UNX_UNIXSOCKET_H
6#include "osa/AbstractBaseSocket.h"
8namespace tenduke {
namespace osa {
namespace unx {
20 UnixSocket(in_addr_t address, in_port_t port);
22 std::unique_ptr<tenduke::osa::Socket> accept()
override;
23 std::uint16_t getPort()
const override;
28 void setNonBlocking()
override;
31 UnixSocket(
int descriptor,
const struct ::sockaddr_in *address);
33 std::unique_ptr<tenduke::osa::Socket> createSocket(
int descriptor,
const struct ::sockaddr_in *address)
override;
34 int getLastError()
const override;
35 std::string mkErrorMessage(
const std::string &body,
int errorCode)
const override;
36 bool wouldBlock(
int errorCode)
const override;
Abstract base implementation of tenduke::osa::Socket.
Definition AbstractBaseSocket.h:52
virtual std::string mkErrorMessage(const std::string &body) const
Builds error message.
Definition AbstractBaseSocket.cpp:138
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4