2 Aesalon, a tool to visualize a program's behaviour at run-time.
3 Copyright (C) 2010, Aesalon Development Team.
5 Aesalon is distributed under the terms of the GNU GPLv3. For more
6 licensing information, see the file LICENSE included with the distribution.
8 @file include/vcomm/NetworkSink.h
12 #ifndef AesalonVComm_NetworkSink_H
13 #define AesalonVComm_NetworkSink_H
17 #include <semaphore.h>
23 class NetworkSink
: public DataSink
{
29 typedef std::vector
<int> ClientFdList
;
30 ClientFdList m_clientFds
;
35 /** Sink a packet across a network socket.
37 virtual void sinkPacket(Common::VPacket
*packet
);
41 void waitForConnections(int connectionCount
);
43 void sendPacket(Common::VPacket
*packet
, int fd
);