1#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__) || defined (_WIN64)
3#ifndef TENDUKE_OSA_WIN_WINDOWSSOCKET_H
4#define TENDUKE_OSA_WIN_WINDOWSSOCKET_H
6#include "../AbstractBaseSocket.h"
8namespace tenduke {
namespace osa {
namespace win {
21 WindowsSocket(u_long address, u_short port);
23 std::unique_ptr<tenduke::osa::Socket> accept()
override;
24 std::uint16_t getPort()
const override;
25 void setNonBlocking()
override;
28 WindowsSocket(::SOCKET descriptor,
const struct ::sockaddr_in *address);
30 std::unique_ptr<tenduke::osa::Socket> createSocket(
int descriptor,
const struct ::sockaddr_in *address)
override;
31 int getLastError()
const override;
32 std::string mkErrorMessage(
const std::string &body,
int errorCode)
const override;
33 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 BackendConfiguration.h:7