The InspIRCd Project
Home | Developers | Wiki | Forums | Bug Tracker | SVN | Download
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

inspsocket.h File Reference

#include "timer.h"

Include dependency graph for inspsocket.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  SocketTimeout
 Used to time out socket connections. More...
class  BufferedSocket
 BufferedSocket is an extendable socket class which modules can use for TCP socket support. More...

Enumerations

enum  BufferedSocketState { I_DISCONNECTED, I_CONNECTING, I_CONNECTED, I_ERROR }
 States which a socket may be in. More...
enum  BufferedSocketError {
  I_ERR_TIMEOUT, I_ERR_SOCKET, I_ERR_CONNECT, I_ERR_BIND,
  I_ERR_RESOLVE, I_ERR_WRITE, I_ERR_NOMOREFDS
}
 Error types which a socket may exhibit. More...


Enumeration Type Documentation

enum BufferedSocketError
 

Error types which a socket may exhibit.

Enumerator:
I_ERR_TIMEOUT  Socket connect timed out.
I_ERR_SOCKET  Socket could not be created.
I_ERR_CONNECT  Socket could not connect (refused).
I_ERR_BIND  Socket could not bind to local port/ip.
I_ERR_RESOLVE  Socket could not reslve host (depreciated).
I_ERR_WRITE  Socket could not write data.
I_ERR_NOMOREFDS  No more file descriptors left to create socket!

Definition at line 37 of file inspsocket.h.

enum BufferedSocketState
 

States which a socket may be in.

Enumerator:
I_DISCONNECTED  Socket disconnected.
I_CONNECTING  Socket connecting.
I_CONNECTED  Socket fully connected.
I_ERROR  Socket has an error.

Definition at line 22 of file inspsocket.h.