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 | |
| parent | 1341e2afca0dd1de1f2d28f51f445d09ec6ddc07 (diff) | |
| download | pica-pica-7a394a9baf4863ab2c5b8f60eefb98688ee96a7c.tar.gz pica-pica-7a394a9baf4863ab2c5b8f60eefb98688ee96a7c.zip | |
function declarations
| -rw-r--r-- | PICA_client.c | 12 | ||||
| -rw-r--r-- | PICA_client.h | 5 |
2 files changed, 9 insertions, 8 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; diff --git a/PICA_client.h b/PICA_client.h index e645365..ad13740 100644 --- a/PICA_client.h +++ b/PICA_client.h @@ -311,11 +311,6 @@ int PICA_open_acc(const char *cert_file, struct PICA_acc **acc); // <<<//// -int PICA_read_c2n(struct PICA_c2n *ci); - -int PICA_read(struct PICA_c2n *ci, int timeout); -int PICA_write(struct PICA_c2n *ci); - //connections, listeners - NULL-terminated arrays of pointers to appropriate structures // timeout - timeout in milliseconds int PICA_event_loop(struct PICA_c2n **connections, struct PICA_listener **listeners, int timeout); |
