-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmfs_imap_send.h
More file actions
36 lines (29 loc) · 772 Bytes
/
mfs_imap_send.h
File metadata and controls
36 lines (29 loc) · 772 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef _MFS_IMAP_SEND_H_
#define _MFS_IMAP_SEND_H_
#include "mfs_client.h"
#include "mfs_imap.h"
#include "mfs_imap_parse.h"
/**
* This is the thread function that keep imap connected
*/
int mfs_imap_keep_connected(void *data);
/**
* This is the thread function that keep imap idling
*/
int mfs_imap_keep_idling(void *data);
/**
* Function that send a command. If rcv is not null, send is synchronous and rcv
* get server response
*/
int mfs_imap_send_cmd(struct mfs_client *clt, struct imap_cmd *send,
struct imap_msg **rcv);
/**
* This is the thread function that get IMAP message from fs and send them to
* the server
*/
int mfs_imap_send_process(void *data);
/**
* This relaunch imap idle
*/
int mfs_imap_send_rsp(struct mfs_client *clt);
#endif