Mercurial > hg > freeDiameter
comparison libfdcore/cnxctx.h @ 1420:689758fbb05d
Remove trailing whitespace.
author | Thomas Klausner <tk@giga.or.at> |
---|---|
date | Tue, 18 Feb 2020 11:39:01 +0100 |
parents | ce2b00dc86c1 |
children | 3ac2877628a5 |
comparison
equal
deleted
inserted
replaced
1419:89cbb08d3189 | 1420:689758fbb05d |
---|---|
43 | 43 |
44 /* The connection context structure */ | 44 /* The connection context structure */ |
45 struct cnxctx { | 45 struct cnxctx { |
46 char cc_id[60]; /* The name of this connection. the first 5 chars are reserved for flags display (cc_state). */ | 46 char cc_id[60]; /* The name of this connection. the first 5 chars are reserved for flags display (cc_state). */ |
47 char cc_remid[60]; /* Id of remote peer */ | 47 char cc_remid[60]; /* Id of remote peer */ |
48 | 48 |
49 int cc_socket; /* The socket object of the connection -- <=0 if no socket is created */ | 49 int cc_socket; /* The socket object of the connection -- <=0 if no socket is created */ |
50 | 50 |
51 int cc_family; /* AF_INET or AF_INET6 (mixed) */ | 51 int cc_family; /* AF_INET or AF_INET6 (mixed) */ |
52 int cc_proto; /* IPPROTO_TCP or IPPROTO_SCTP */ | 52 int cc_proto; /* IPPROTO_TCP or IPPROTO_SCTP */ |
53 | 53 |
54 uint32_t cc_state; /* True if the object is being destroyed: we don't send events anymore. access with fd_cnx_getstate() */ | 54 uint32_t cc_state; /* True if the object is being destroyed: we don't send events anymore. access with fd_cnx_getstate() */ |
55 #define CC_STATUS_CLOSING 1 | 55 #define CC_STATUS_CLOSING 1 |
56 #define CC_STATUS_ERROR 2 | 56 #define CC_STATUS_ERROR 2 |
57 #define CC_STATUS_SIGNALED 4 | 57 #define CC_STATUS_SIGNALED 4 |
58 #define CC_STATUS_TLS 8 | 58 #define CC_STATUS_TLS 8 |
59 | 59 |
60 pthread_t cc_rcvthr; /* thread for receiving messages on the connection */ | 60 pthread_t cc_rcvthr; /* thread for receiving messages on the connection */ |
61 int cc_loop; /* tell the thread if it loops or stops after the first message is received */ | 61 int cc_loop; /* tell the thread if it loops or stops after the first message is received */ |
62 | 62 |
63 struct fifo * cc_incoming; /* FIFO queue of events received on the connection, FDEVP_CNX_* */ | 63 struct fifo * cc_incoming; /* FIFO queue of events received on the connection, FDEVP_CNX_* */ |
64 struct fifo * cc_alt; /* alternate fifo to send FDEVP_CNX_* events to. */ | 64 struct fifo * cc_alt; /* alternate fifo to send FDEVP_CNX_* events to. */ |
65 | 65 |
66 /* If cc_tls == true */ | 66 /* If cc_tls == true */ |
67 struct { | 67 struct { |