NeoMutt  2023-05-17-56-ga67199
Teaching an old dog new tricks
DOXYGEN
Connection Struct Reference

#include "connection.h"

+ Inheritance diagram for Connection:
+ Collaboration diagram for Connection:

Data Fields

struct ConnAccount account
 Account details: username, password, etc. More...
 
unsigned int ssf
 Security strength factor, in bits (see notes) More...
 
char inbuf [1024]
 Buffer for incoming traffic. More...
 
int bufpos
 Current position in the buffer. More...
 
int fd
 Socket file descriptor. More...
 
int available
 Amount of data waiting to be read. More...
 
void * sockdata
 Backend-specific socket data. More...
 
int(* open )(struct Connection *conn)
 
int(* read )(struct Connection *conn, char *buf, size_t count)
 
int(* write )(struct Connection *conn, const char *buf, size_t count)
 
int(* poll )(struct Connection *conn, time_t wait_secs)
 
int(* close )(struct Connection *conn)
 

Detailed Description

Definition at line 48 of file connection.h.

Field Documentation

◆ account

struct ConnAccount Connection::account

Account details: username, password, etc.

Definition at line 50 of file connection.h.

◆ ssf

unsigned int Connection::ssf

Security strength factor, in bits (see notes)

Definition at line 51 of file connection.h.

◆ inbuf

char Connection::inbuf[1024]

Buffer for incoming traffic.

Definition at line 52 of file connection.h.

◆ bufpos

int Connection::bufpos

Current position in the buffer.

Definition at line 53 of file connection.h.

◆ fd

int Connection::fd

Socket file descriptor.

Definition at line 54 of file connection.h.

◆ available

int Connection::available

Amount of data waiting to be read.

Definition at line 55 of file connection.h.

◆ sockdata

void* Connection::sockdata

Backend-specific socket data.

Definition at line 56 of file connection.h.

◆ open

int(* Connection::open) (struct Connection *conn)

Definition at line 67 of file connection.h.

◆ read

int(* Connection::read) (struct Connection *conn, char *buf, size_t count)

Definition at line 80 of file connection.h.

◆ write

int(* Connection::write) (struct Connection *conn, const char *buf, size_t count)

Definition at line 93 of file connection.h.

◆ poll

int(* Connection::poll) (struct Connection *conn, time_t wait_secs)

Definition at line 106 of file connection.h.

◆ close

int(* Connection::close) (struct Connection *conn)

Definition at line 117 of file connection.h.


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