about summary refs log tree commit diff
path: root/cptc.h
blob: 9b57cd0c4f66c0fc8482b50259cd1edeb94d09a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef __CPTC_H__
#define __CPTC_H__

#include <netinet/in.h>


enum CPTC_Method
{
    CPTC_GET = 'G',
    CPTC_HEAD = 'H',
};

extern const char *CPTC_token;
extern const char *CPTC_root;

void CPTC(const char *address, in_port_t port);
void CPTC_requestHandler(int fd, int n);
char *CPTC_downloadAvatar(long long uid, const char *download_path);

#endif /* __CPTC_H__ */