diff options
| author | Anton <anton@picapica> | 2016-12-05 00:47:25 +0400 |
|---|---|---|
| committer | Anton <anton@picapica> | 2016-12-05 00:47:25 +0400 |
| commit | 3464c67eb77400d3fa04684ea8d4afe185eab462 (patch) | |
| tree | 6a806fabacc2613decaca8a3c2b5f58091ced97d | |
| parent | 158d5b71b968d17c7b50d77302ee73466cb099fe (diff) | |
| download | pica-pica-3464c67eb77400d3fa04684ea8d4afe185eab462.tar.gz pica-pica-3464c67eb77400d3fa04684ea8d4afe185eab462.zip | |
enum for direct c2c connection instance state
| -rw-r--r-- | PICA_client.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/PICA_client.h b/PICA_client.h index afe51de..247b949 100644 --- a/PICA_client.h +++ b/PICA_client.h @@ -191,6 +191,15 @@ enum PICA_directc2c_state PICA_DIRECTC2C_STATE_ACTIVE }; +enum PICA_directc2c_connection_state +{ + PICA_DIRECTC2C_CONNSTATE_NEW = 0, + PICA_DIRECTC2C_CONNSTATE_CONNECTING, + PICA_DIRECTC2C_CONNSTATE_WAITINGTLS, + PICA_DIRECTC2C_CONNSTATE_ACTIVE, + PICA_DIRECTC2C_CONNSTATE_FAILED +}; + struct PICA_c2c_direct { int is_outgoing; @@ -203,6 +212,8 @@ struct PICA_c2c_direct struct sockaddr_in addr; + enum PICA_directc2c_connection_state state; + struct PICA_c2c_direct *next; }; |
