diff options
| author | Anton <anton@picapica> | 2016-06-24 22:56:08 +0400 |
|---|---|---|
| committer | Anton <anton@picapica> | 2016-06-24 22:56:08 +0400 |
| commit | d8567c4ff9d78283773a19a84f02dcc3df775a61 (patch) | |
| tree | 461ca4886e1ac43dbb0baeb20f773713312db02a /PICA_client.h | |
| parent | a0a2d2915706113c09149afbfc4d7c4659514f7f (diff) | |
| download | pica-pica-d8567c4ff9d78283773a19a84f02dcc3df775a61.tar.gz pica-pica-d8567c4ff9d78283773a19a84f02dcc3df775a61.zip | |
new direct c2c related types and struct fields
Diffstat (limited to 'PICA_client.h')
| -rw-r--r-- | PICA_client.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/PICA_client.h b/PICA_client.h index 4e9dd17..661ae6d 100644 --- a/PICA_client.h +++ b/PICA_client.h @@ -171,6 +171,21 @@ enum PICA_c2c_state PICA_C2C_STATE_ACTIVE }; +enum PICA_directc2c_config +{ + PICA_DIRECTC2C_CFG_DISABLED, + PICA_DIRECTC2C_CFG_CONNECTONLY, + PICA_DIRECTC2C_CFG_ALLOWINCOMING +}; + +enum PICA_directc2c_state +{ + PICA_DIRECTC2C_STATE_NEW, + PICA_DIRECTC2C_STATE_WAITINGINCOMING, + PICA_DIRECTC2C_STATE_CONNECTING, + PICA_DIRECTC2C_STATE_ACTIVE +}; + struct PICA_c2c { const struct PICA_acc *acc; @@ -178,6 +193,8 @@ struct PICA_c2c unsigned char peer_id[PICA_ID_SIZE]; SOCKET sck_data; SSL *ssl; + SOCKET direct_sck; + SSL *direct_ssl; int outgoing;//1 если создание канала инициировано локальным клиентом, 0 - если собеседником X509 *peer_cert; //unsigned char msgbuf[PICA_CHNMSGBUFLEN]; @@ -192,6 +209,7 @@ struct PICA_c2c struct PICA_c2c *next; struct PICA_c2c *prev; enum PICA_c2c_state state; + enum PICA_directc2c_state directc2c_state; time_t timestamp; int sendfilestate; uint64_t sendfile_size; |
