ircbot.c  0.3.0
Multi-platform IRC bot in pure C
IRC_Connection Struct Reference

IRC_Connection struct holds the socket handle, receiving buffer and basic info about the connection. More...

#include <connection.h>

Data Fields

SOCKET socket
 Socket handle.
 
struct addrinfo * ai_result
 Addrinfo result pointer. More...
 
struct addrinfo * ai_hints
 
char address [32]
 Address of the server. More...
 
char port [8]
 Port to be used. More...
 
char * recvbuf
 Buffer used by recv() to store incoming data. More...
 
int recvbuflen
 Length of recvbuf, by default = 512. More...
 

Detailed Description

IRC_Connection struct holds the socket handle, receiving buffer and basic info about the connection.

See also
connection_create()

Field Documentation

◆ address

char IRC_Connection::address[32]

Address of the server.

E.g. "irc.freenode.net".

◆ ai_hints

struct addrinfo* IRC_Connection::ai_hints
See also
ai_result()

◆ ai_result

struct addrinfo* IRC_Connection::ai_result

Addrinfo result pointer.

See getaddrinfo() for more information.

◆ port

char IRC_Connection::port[8]

Port to be used.

Note that this is a string, not an integer.

◆ recvbuf

char* IRC_Connection::recvbuf

Buffer used by recv() to store incoming data.

◆ recvbuflen

int IRC_Connection::recvbuflen

Length of recvbuf, by default = 512.


The documentation for this struct was generated from the following file: