equal
deleted
inserted
replaced
1 #ifndef NETWORK_UDP_HH |
1 #ifndef NETWORK_UDP_HH |
2 #define NETWORK_UDP_HH |
2 #define NETWORK_UDP_HH |
|
3 |
|
4 /** |
|
5 * @file |
|
6 * |
|
7 * UDP implementation |
|
8 */ |
3 |
9 |
4 #include "Socket.hh" |
10 #include "Socket.hh" |
5 #include "Address.hh" |
11 #include "Address.hh" |
6 #include "Packet.hh" |
12 #include "Packet.hh" |
7 |
13 |
42 CL_Signal_v2<NetworkPacketInput&, const NetworkAddress&> _sig_packet; |
48 CL_Signal_v2<NetworkPacketInput&, const NetworkAddress&> _sig_packet; |
43 |
49 |
44 public: |
50 public: |
45 /** |
51 /** |
46 * Send the given packet on this UDP socket to the given destination address |
52 * Send the given packet on this UDP socket to the given destination address |
|
53 * |
|
54 * @return true if the packet was passed on to the socket API, false if the socket was busy and the packet was |
|
55 * dropped (no chance of it arriving). |
47 */ |
56 */ |
48 bool sendto (const NetworkPacketBuffer &packet, const NetworkAddress &dst); |
57 bool sendto (const NetworkPacketBuffer &packet, const NetworkAddress &dst); |
49 |
58 |
50 /** |
59 /** |
51 * Triggered whenever a packet has been received, giving the NetworkPacketInput and the source address |
60 * Triggered whenever a packet has been received, giving the NetworkPacketInput and the source address |