11 #ifndef ASIO_DETAIL_SOCKET_OPTION_HPP 12 #define ASIO_DETAIL_SOCKET_OPTION_HPP 14 #if defined(_MSC_VER) && (_MSC_VER >= 1200) 16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200) 28 namespace socket_option {
31 template <
int Level,
int Name>
73 template <
typename Protocol>
74 int level(
const Protocol&)
const 80 template <
typename Protocol>
81 int name(
const Protocol&)
const 87 template <
typename Protocol>
94 template <
typename Protocol>
95 const int*
data(
const Protocol&)
const 101 template <
typename Protocol>
102 std::size_t
size(
const Protocol&)
const 104 return sizeof(value_);
108 template <
typename Protocol>
117 value_ = *reinterpret_cast<char*>(&value_) ? 1 : 0;
123 std::length_error ex(
"boolean socket option resize");
134 template <
int Level,
int Name>
164 template <
typename Protocol>
171 template <
typename Protocol>
172 int name(
const Protocol&)
const 178 template <
typename Protocol>
185 template <
typename Protocol>
186 const int*
data(
const Protocol&)
const 192 template <
typename Protocol>
193 std::size_t
size(
const Protocol&)
const 195 return sizeof(value_);
199 template <
typename Protocol>
202 if (s !=
sizeof(value_))
204 std::length_error ex(
"integer socket option resize");
214 template <
int Level,
int Name>
235 value_.l_onoff = value ? 1 : 0;
241 return value_.l_onoff != 0;
248 value_.l_linger =
static_cast<u_short
>(
value);
250 value_.l_linger =
value;
257 return static_cast<int>(value_.l_linger);
261 template <
typename Protocol>
268 template <
typename Protocol>
269 int name(
const Protocol&)
const 275 template <
typename Protocol>
282 template <
typename Protocol>
289 template <
typename Protocol>
290 std::size_t
size(
const Protocol&)
const 292 return sizeof(value_);
296 template <
typename Protocol>
299 if (s !=
sizeof(value_))
301 std::length_error ex(
"linger socket option resize");
316 #endif // ASIO_DETAIL_SOCKET_OPTION_HPP void resize(const Protocol &, std::size_t s)
integer & operator=(int v)
const int * data(const Protocol &) const
std::size_t size(const Protocol &) const
std::size_t size(const Protocol &) const
#define ASIO_PREVENT_MACRO_SUBSTITUTION
int level(const Protocol &) const
std::size_t size(const Protocol &) const
pylon Camera Software Suite for Linux for Use with Basler Gigabit the pylon Viewer and the IP Configurator applications might not be available System I340 and I350 series Although the pylon software will work with any GigE network we would recommend to use one of these adapters USB For U3V devices a USB3 capable USB controller is necessary For best performance and stability we highly recommend a kernel the following settings should be i e
int level(const Protocol &) const
void resize(const Protocol &, std::size_t s)
int name(const Protocol &) const
int timeout ASIO_PREVENT_MACRO_SUBSTITUTION() const
int name(const Protocol &) const
int name(const Protocol &) const
const detail::linger_type * data(const Protocol &) const
int * data(const Protocol &)
detail::linger_type * data(const Protocol &)
int level(const Protocol &) const
void timeout ASIO_PREVENT_MACRO_SUBSTITUTION(int value)
boolean & operator=(bool v)
void resize(const Protocol &, std::size_t s)
int * data(const Protocol &)
void throw_exception(const Exception &e)
const int * data(const Protocol &) const