NeoMutt  2024-04-25-85-g27bab4
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
Connection Struct Reference

#include "connection.h"

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

Data Fields

struct ConnAccount account
 Account details: username, password, etc.
 
unsigned int ssf
 Security strength factor, in bits (see notes)
 
char inbuf [1024]
 Buffer for incoming traffic.
 
int bufpos
 Current position in the buffer.
 
int fd
 Socket file descriptor.
 
int available
 Amount of data waiting to be read.
 
void * sockdata
 Backend-specific socket data.
 
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 47 of file connection.h.

Field Documentation

◆ account

struct ConnAccount Connection::account

Account details: username, password, etc.

Definition at line 49 of file connection.h.

◆ ssf

unsigned int Connection::ssf

Security strength factor, in bits (see notes)

Definition at line 50 of file connection.h.

◆ inbuf

char Connection::inbuf[1024]

Buffer for incoming traffic.

Definition at line 51 of file connection.h.

◆ bufpos

int Connection::bufpos

Current position in the buffer.

Definition at line 52 of file connection.h.

◆ fd

int Connection::fd

Socket file descriptor.

Definition at line 53 of file connection.h.

◆ available

int Connection::available

Amount of data waiting to be read.

Definition at line 54 of file connection.h.

◆ sockdata

void* Connection::sockdata

Backend-specific socket data.

Definition at line 55 of file connection.h.

◆ open

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

Definition at line 66 of file connection.h.

◆ read

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

Definition at line 79 of file connection.h.

◆ write

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

Definition at line 92 of file connection.h.

◆ poll

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

Definition at line 105 of file connection.h.

◆ close

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

Definition at line 116 of file connection.h.


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