Switch over to more modern unix sharedmemory API (requested by fatbob)
[umurmur.git] / src / client.h
index 60c86dbfa2657c821d289df33f236e6bef2629d3..9f17ddf3d822ec32d708a5523ec62eee69d892ea 100644 (file)
 
 #define IS_AUTH(_a_) ((_a_)->authenticated)
 
-typedef struct {
+typedef struct {   /* You can add new lines to this struct, any reordering of some of the lines will break the sharedmemory API */
        int tcpfd;
        SSL_handle_t *ssl;
        bool_t SSLready;
        bool_t shutdown_wait;
        cryptState_t cryptState;
        bool_t readBlockedOnWrite, writeBlockedOnRead;
-
        struct sockaddr_storage remote_tcp;
        struct sockaddr_storage remote_udp;
-       char addressString[INET6_ADDRSTRLEN];
        uint8_t rxbuf[BUFSIZE], txbuf[BUFSIZE];
        uint32_t rxcount, msgsize, drainleft, txcount, txsize;
        int sessionId;