PLCnext API Documentation 25.0.2.69
PollMode.hpp
1
2//
3// Copyright Phoenix Contact GmbH & Co. KG
4//
6#pragma once
8#include "Arp/System/Core/Enum.hxx"
9
10namespace Arp { namespace System { namespace Commons { namespace Net
11{
12
14enum class PollMode
15{
17 None = 0,
19 Read = 1,
21 Write = 2,
23 Connect = 3,
25 Accept = 4
26};
27
29// global stream operators of enum PollMode for logging and parsing
30ARP_CXX_SYMBOL_EXPORT std::ostream& operator<<(std::ostream& os, PollMode value);
31ARP_CXX_SYMBOL_EXPORT std::istream& operator>>(std::istream& is, PollMode& value);
32
33}}}} // end of namespace Arp::System::Commons::Net
34
35template<> struct fmt::formatter<Arp::System::Commons::Net::PollMode>: public fmt::ostream_formatter {};
@ Write
Specifies write access to the file. Data can be written to the file and the file pointer can be moved...
@ Read
Specifies read access to the file. Data can be read from the file and the file pointer can be moved....
PollMode
This enum is used to specifiy the poll mode of the <cref name="Socket::Poll" > operation.
Definition: PollMode.hpp:15
@ Connect
Connect operation should be polled.
@ Accept
Accept operation should be polled.
std::ostream & operator<<(std::ostream &os, const IpAddress &ipAddress)
The ostream operator is used for logging and string formatting.
Definition: IpAddress.cpp:76
std::istream & operator>>(std::istream &is, IpAddress &ipAddress)
The istream operator is used for string parsing.
Definition: IpAddress.cpp:83
Root namespace for the PLCnext API