2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
42#include "net/phy/PhysicalSocketOption.h"
44#ifndef DOXYGEN_SHOULD_SKIP_THIS
53 ,
optValue(
reinterpret_cast<
char*>(&optValue),
reinterpret_cast<
char*>(&optValue) +
sizeof(optValue)) {
59 ,
optValue(optValue.begin(), optValue.end()) {
77 return static_cast<
const void*>(
optValue.data());
81 return static_cast<socklen_t>(
optValue.size());
socklen_t getOptLen() const
const void * getOptValue() const
PhysicalSocketOption(int optLevel, int optName, int optValue)
std::vector< char > optValue
PhysicalSocketOption(int optLevel, int optName, const std::vector< char > &optValue)
PhysicalSocketOption(int optLevel, int optName, const std::string &optValue)