NeoMutt  2020-08-21-74-g346364
Teaching an old dog new tricks
DOXYGEN
mutt_socket.h
Go to the documentation of this file.
1 
23 #ifndef MUTT_MUTT_SOCKET_H
24 #define MUTT_MUTT_SOCKET_H
25 
26 struct ConnAccount;
27 
28 /* logging levels */
29 #define MUTT_SOCK_LOG_CMD 2
30 #define MUTT_SOCK_LOG_HDR 3
31 #define MUTT_SOCK_LOG_FULL 5
32 
33 struct Connection *mutt_conn_find(const struct ConnAccount *account);
34 struct Connection *mutt_conn_new(const struct ConnAccount *account);
35 
36 #define mutt_socket_readln(buf, buflen, conn) mutt_socket_readln_d(buf, buflen, conn, MUTT_SOCK_LOG_CMD)
37 #define mutt_socket_send(conn, buf) mutt_socket_send_d(conn, buf, MUTT_SOCK_LOG_CMD)
38 #define mutt_socket_send_d(conn, buf, dbg) mutt_socket_write_d(conn, buf, mutt_str_len(buf), dbg)
39 #define mutt_socket_write_n(conn, buf, len) mutt_socket_write_d(conn, buf, len, MUTT_SOCK_LOG_CMD)
40 
41 #endif /* MUTT_MUTT_SOCKET_H */
struct ConnAccount account
Account details: username, password, etc.
Definition: connection.h:36
An open network connection (socket)
Definition: connection.h:34
struct Connection * mutt_conn_find(const struct ConnAccount *account)
Find a connection from a list.
Definition: mutt_socket.c:86
struct Connection * mutt_conn_new(const struct ConnAccount *account)
Create a new Connection.
Definition: mutt_socket.c:46
Login details for a remote server.
Definition: connaccount.h:51