NeoMutt  2024-12-12-14-g7b49f7
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
connection.h
Go to the documentation of this file.
1
23#ifndef MUTT_CONN_CONNECTION_H
24#define MUTT_CONN_CONNECTION_H
25
26#include <stdio.h>
27#include <time.h>
28#include "connaccount.h"
29
48{
50 unsigned int ssf;
51 char inbuf[1024];
52 int bufpos;
53 int fd;
55 void *sockdata;
56
66 int (*open)(struct Connection *conn);
67
79 int (*read)(struct Connection *conn, char *buf, size_t count);
80
92 int (*write)(struct Connection *conn, const char *buf, size_t count);
93
105 int (*poll)(struct Connection *conn, time_t wait_secs);
106
116 int (*close)(struct Connection *conn);
117};
118
119#endif /* MUTT_CONN_CONNECTION_H */
Connection Credentials.
Login details for a remote server.
Definition: connaccount.h:53
void * sockdata
Backend-specific socket data.
Definition: connection.h:55
char inbuf[1024]
Buffer for incoming traffic.
Definition: connection.h:51
int(* poll)(struct Connection *conn, time_t wait_secs)
Definition: connection.h:105
int(* write)(struct Connection *conn, const char *buf, size_t count)
Definition: connection.h:92
unsigned int ssf
Security strength factor, in bits (see notes)
Definition: connection.h:50
int bufpos
Current position in the buffer.
Definition: connection.h:52
int(* close)(struct Connection *conn)
Definition: connection.h:116
int available
Amount of data waiting to be read.
Definition: connection.h:54
struct ConnAccount account
Account details: username, password, etc.
Definition: connection.h:49
int(* open)(struct Connection *conn)
Definition: connection.h:66
int fd
Socket file descriptor.
Definition: connection.h:53
int(* read)(struct Connection *conn, char *buf, size_t count)
Definition: connection.h:79