NeoMutt  2021-02-05-666-ge300cd
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 below) 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 38 of file connection.h.

Field Documentation

◆ account

struct ConnAccount Connection::account

Account details: username, password, etc.

Definition at line 40 of file connection.h.

◆ ssf

unsigned int Connection::ssf

Security strength factor, in bits (see below)

Definition at line 41 of file connection.h.

◆ inbuf

char Connection::inbuf[1024]

Buffer for incoming traffic.

Definition at line 42 of file connection.h.

◆ bufpos

int Connection::bufpos

Current position in the buffer.

Definition at line 43 of file connection.h.

◆ fd

int Connection::fd

Socket file descriptor.

Definition at line 44 of file connection.h.

◆ available

int Connection::available

Amount of data waiting to be read.

Definition at line 45 of file connection.h.

◆ sockdata

void* Connection::sockdata

Backend-specific socket data.

Definition at line 46 of file connection.h.

◆ open

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

Definition at line 69 of file connection.h.

◆ read

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

Definition at line 82 of file connection.h.

◆ write

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

Definition at line 95 of file connection.h.

◆ poll

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

Definition at line 108 of file connection.h.

◆ close

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

Definition at line 119 of file connection.h.


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