Sese Framework  2.3.0
A cross-platform framework
Loading...
Searching...
No Matches
Socket.h File Reference

Native Socket class. More...

#include "sese/net/IPv6Address.h"
#include "sese/Config.h"
#include "sese/io/Closeable.h"
#include "sese/io/Stream.h"
#include "sese/io/PeekableStream.h"
#include "sese/util/Initializer.h"
#include <system_error>

Go to the source code of this file.

Classes

class  sese::net::Socket
 Native Socket class. More...
 

Namespaces

namespace  sese
 
namespace  sese::net
 

Macros

#define W(func)
 
#define R(func)
 

Functions

uint16_t sese::net::createRandomPort () noexcept
 
int sese::net::getNetworkError () noexcept
 Get network-related error codes.
 
std::string sese::net::getNetworkErrorString (int error=getNetworkError()) noexcept
 Get network-related error description.
 

Detailed Description

Native Socket class.

Author
kaoru
Date
April 9, 2022

Macro Definition Documentation

◆ R

#define R ( func)
Value:
auto len = read(&value, sizeof(value)); \
value = func(value); \
return len;

Referenced by sese::net::Socket::readInt16().

◆ W

#define W ( func)
Value:
value = func(value); \
return write(&value, sizeof(value));

Referenced by sese::net::Socket::writeInt16().