summaryrefslogtreecommitdiffstats
path: root/PICA_client.h
diff options
context:
space:
mode:
authorAnton <anton@picapica>2016-04-13 22:20:48 +0400
committerAnton <anton@picapica>2016-04-13 22:20:48 +0400
commitc736cd472eac74b65b5a0ef67ba6acfdcf1b19c2 (patch)
tree02c01d996b63872ea8a5835f39d9c18f75b26785 /PICA_client.h
parentfff351c20da3294f9f8d13d94660fea099093738 (diff)
downloadpica-pica-c736cd472eac74b65b5a0ef67ba6acfdcf1b19c2.tar.gz
pica-pica-c736cd472eac74b65b5a0ef67ba6acfdcf1b19c2.zip
asynchronous processing of c2c connections, work in progress
Diffstat (limited to 'PICA_client.h')
-rw-r--r--PICA_client.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/PICA_client.h b/PICA_client.h
index 421861a..841a7cf 100644
--- a/PICA_client.h
+++ b/PICA_client.h
@@ -157,11 +157,16 @@ struct PICA_c2n
int init_resp_ok;
unsigned char node_ver_major, node_ver_minor;
+ int disconnect_on_empty_write_buf;
};
enum PICA_c2c_state
{
PICA_C2C_STATE_NEW = 0,
+ PICA_C2C_STATE_CONNECTING,
+ PICA_C2C_STATE_CONNID,
+ PICA_C2C_STATE_WAITINGTLS,
+ PICA_C2C_STATE_WAITINGREP,
PICA_C2C_STATE_ACTIVE
};
@@ -196,6 +201,8 @@ struct PICA_c2c
uint64_t recvfile_size;
uint64_t recvfile_pos;
FILE *recvfile_stream;
+//this flag should be set when connection must be closed after sending last pushed packet
+ int disconnect_on_empty_write_buf;
};
struct PICA_listener