diff options
| author | Anton <anton@picapica> | 2016-09-23 19:14:10 +0400 |
|---|---|---|
| committer | Anton <anton@picapica> | 2016-09-23 19:14:10 +0400 |
| commit | 7a394a9baf4863ab2c5b8f60eefb98688ee96a7c (patch) | |
| tree | ecf7f8f7abaf809330e03f9823c471b7fea5efbe /PICA_client.c | |
| parent | 1341e2afca0dd1de1f2d28f51f445d09ec6ddc07 (diff) | |
| download | pica-pica-7a394a9baf4863ab2c5b8f60eefb98688ee96a7c.tar.gz pica-pica-7a394a9baf4863ab2c5b8f60eefb98688ee96a7c.zip | |
function declarations
Diffstat (limited to 'PICA_client.c')
| -rw-r--r-- | PICA_client.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/PICA_client.c b/PICA_client.c index d50c034..1f026a7 100644 --- a/PICA_client.c +++ b/PICA_client.c @@ -52,6 +52,15 @@ static unsigned int procmsg_C2CCONNREQ(unsigned char* buf, unsigned int nb, void static struct PICA_proto_msg* c2n_writebuf_push(struct PICA_c2n *ci, unsigned int msgid, unsigned int size); static struct PICA_proto_msg* c2c_writebuf_push(struct PICA_c2c *chn, unsigned int msgid, unsigned int size); +static int PICA_write_c2n(struct PICA_c2n *ci); +static int PICA_write_c2c(struct PICA_c2c *chn); +static int PICA_write_ssl(SSL *ssl, unsigned char *buf, unsigned int *ppos, unsigned int *btw); +static int PICA_write_socket(SOCKET s, unsigned char *buf, unsigned int *ppos); +static int PICA_read_c2n(struct PICA_c2n *ci); +static int PICA_read_c2c(struct PICA_c2c *chn); +static int PICA_read_ssl(SSL *ssl, unsigned char *buf, unsigned int *ppos, unsigned int size); +static int PICA_read_socket(SOCKET s, unsigned char *buf, unsigned int *ppos, unsigned int size); + #define MSGINFO_MSGSNUM(arr) (sizeof(arr)/sizeof(struct PICA_msginfo)) const struct PICA_msginfo c2n_messages[] = { @@ -2071,9 +2080,6 @@ int PICA_write_ssl(SSL *ssl, unsigned char *buf, unsigned int *ppos, unsigned in return PICA_OK; } -//int PICA_read_socket() -//int PICA_read_ssl() - int PICA_write_c2n(struct PICA_c2n *ci) { int ret = PICA_ERRINVARG; |
