diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2013-02-16 00:32:15 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2013-02-16 00:32:15 -0800 |
commit | b682c4102e31257f96094617275d451c1b0de855 (patch) | |
tree | 2df879d1871a658d4e293aad3e285e5c28e09f64 /env_universal_common.h | |
parent | 6d522e6ed6b2e87b193e928e888ca4747a4f974d (diff) |
Eliminate next pointer from connection_t, turn connections into a std::list
Diffstat (limited to 'env_universal_common.h')
-rw-r--r-- | env_universal_common.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/env_universal_common.h b/env_universal_common.h index e5f44f76..294c0e0b 100644 --- a/env_universal_common.h +++ b/env_universal_common.h @@ -76,8 +76,14 @@ typedef std::queue<message_t *> message_queue_t; /** This struct represents a connection between a universal variable server/client */ -struct connection_t +class connection_t { + private: + /* No assignment */ + connection_t &operator=(const connection_t &); + + public: + /** The file descriptor this socket lives on */ @@ -112,11 +118,6 @@ struct connection_t Number of bytes that have been read into the buffer. */ size_t buffer_used; - - /** - Link to the next connection - */ - struct connection_t *next; /* Constructor */ connection_t(int input_fd); |