#include "C4Include.h"#include "network/C4NetIO.h"#include "config/C4Constants.h"#include "lib/C4Random.h"#include <sys/stat.h>#include <sys/ioctl.h>#include <netinet/in.h>#include <netinet/tcp.h>#include <arpa/inet.h>#include <netdb.h>#include <ifaddrs.h>#include <net/if.h>Go to the source code of this file.
Classes | |
| struct | C4NetIOUDP::BinAddr |
| struct | C4NetIOUDP::PacketHdr |
| struct | C4NetIOUDP::ConnPacket |
| struct | C4NetIOUDP::ConnOKPacket |
| struct | C4NetIOUDP::AddAddrPacket |
| struct | C4NetIOUDP::DataPacketHdr |
| struct | C4NetIOUDP::CheckPacketHdr |
| struct | C4NetIOUDP::ClosePacket |
| struct | C4NetIOUDP::TestPacket |
| union | C4NetIOUDP::BinAddr.__unnamed66__ |
Macros | |
| #define | ioctlsocket ioctl |
| #define | closesocket close |
| #define | SOCKET_ERROR (-1) |
| #define | C4NETIOUDP_OPT_RECV_CHECK_IMMEDIATE |
Functions | |
| const char * | GetSocketErrorMsg (int iError) |
| const char * | GetSocketErrorMsg () |
| bool | HaveSocketError () |
| bool | HaveWouldBlockError () |
| bool | HaveConnResetError () |
| void | ResetSocketError () |
| union C4NetIOUDP::BinAddr.__unnamed66__ |
Definition at line 2398 of file C4NetIO.cpp.
| Class Members | ||
|---|---|---|
| uint8_t | v4[4] | |
| uint8_t | v6[16] | |
| #define C4NETIOUDP_OPT_RECV_CHECK_IMMEDIATE |
Definition at line 2312 of file C4NetIO.cpp.
| #define closesocket close |
Definition at line 46 of file C4NetIO.cpp.
| #define ioctlsocket ioctl |
Definition at line 45 of file C4NetIO.cpp.
| #define SOCKET_ERROR (-1) |
Definition at line 47 of file C4NetIO.cpp.
| const char* GetSocketErrorMsg | ( | ) |
Definition at line 194 of file C4NetIO.cpp.
References GetSocketErrorMsg().
| const char* GetSocketErrorMsg | ( | int | iError | ) |
Definition at line 190 of file C4NetIO.cpp.
Referenced by C4NetIOSimpleUDP::Execute(), C4NetIOTCP::Execute(), GetSocketErrorMsg(), and C4NetIO::SetError().
| bool HaveConnResetError | ( | ) |
Definition at line 207 of file C4NetIO.cpp.
Referenced by C4NetIOSimpleUDP::Execute().
| bool HaveSocketError | ( | ) |
Definition at line 199 of file C4NetIO.cpp.
Referenced by C4NetIO::SetError().
| bool HaveWouldBlockError | ( | ) |
Definition at line 203 of file C4NetIO.cpp.
Referenced by C4NetIOTCP::Connect(), C4NetIOTCP::Execute(), C4NetIOTCP::Peer::Send(), and C4NetIOSimpleUDP::Send().
| void ResetSocketError | ( | ) |
Definition at line 211 of file C4NetIO.cpp.
Referenced by C4NetIOTCP::Execute().