Anope IRC Services  Version 2.0
Data Structures | Macros | Enumerations | Variables
sockets.h File Reference
#include <netinet/in.h>
#include <sys/types.h>
#include <sys/socket.h>
#include "anope.h"
Include dependency graph for sockets.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

union  sockaddrs
 
class  cidr
 
struct  cidr::hash
 
class  SocketException
 
class  SocketIO
 
class  Socket
 
class  BufferedSocket
 
class  BinarySocket
 
struct  BinarySocket::DataBlock
 
class  ListenSocket
 
class  ConnectionSocket
 
class  ClientSocket
 
class  Pipe
 

Macros

#define NET_BUFSIZE   65535
 

Enumerations

enum  SocketFlag {
  SF_DEAD = 1, SF_READABLE, SF_WRITABLE, SF_CONNECTING,
  SF_CONNECTED, SF_ACCEPTING, SF_ACCEPTED, SF_SIZE
}
 

Variables

CoreExport uint32_t TotalRead
 
CoreExport uint32_t TotalWritten
 
CoreExport SocketIO NormalSocketIO
 

Macro Definition Documentation

#define NET_BUFSIZE   65535

Definition at line 24 of file sockets.h.

Referenced by BufferedSocket::ProcessRead(), and BinarySocket::ProcessRead().

Enumeration Type Documentation

enum SocketFlag
Enumerator
SF_DEAD 
SF_READABLE 
SF_WRITABLE 
SF_CONNECTING 
SF_CONNECTED 
SF_ACCEPTING 
SF_ACCEPTED 
SF_SIZE 

Definition at line 124 of file sockets.h.

Variable Documentation

CoreExport SocketIO NormalSocketIO
CoreExport uint32_t TotalRead

Definition at line 26 of file sockets.cpp.

Referenced by SSLSocketIO::Recv(), SocketIO::Recv(), and Message::Stats::Run().

CoreExport uint32_t TotalWritten

Definition at line 27 of file sockets.cpp.

Referenced by Message::Stats::Run(), SSLSocketIO::Send(), and SocketIO::Send().