summaryrefslogtreecommitdiff
path: root/src/packetSource.h
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2010-01-13 10:00:26 +0000
committerChristian Pointner <equinox@anytun.org>2010-01-13 10:00:26 +0000
commit89f2bd7d66402e27692f737a2f1e1c72f316c6f5 (patch)
treedac4ea87e6c4d382c8deb11b76d5650e6f9f2c00 /src/packetSource.h
parentadded multi socket to SyncServer (better of IPv4 and IPv6) (diff)
clean up
Diffstat (limited to 'src/packetSource.h')
-rw-r--r--src/packetSource.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/packetSource.h b/src/packetSource.h
index da90690..d5ee736 100644
--- a/src/packetSource.h
+++ b/src/packetSource.h
@@ -81,16 +81,16 @@ private:
u_int32_t len_;
proto::socket* sock_;
Semaphore* sem_;
- } sockets_element_t;
- std::list<sockets_element_t> sockets_;
+ } SocketsElement;
+ std::list<SocketsElement> sockets_;
- void recv_thread(std::list<sockets_element_t>::iterator it);
+ void recv_thread(std::list<SocketsElement>::iterator it);
typedef struct {
u_int32_t len_;
PacketSourceEndpoint remote_;
- std::list<sockets_element_t>::iterator it_;
- } thread_result_t;
- std::queue<thread_result_t> thread_result_queue_;
+ std::list<SocketsElement>::iterator it_;
+ } ThreadResult;
+ std::queue<ThreadResult> thread_result_queue_;
Mutex thread_result_mutex_;
Semaphore thread_result_sem_;
};