Changeset 363 in flair-src for trunk/lib/FlairCore/src/UdpSocket.h
- Timestamp:
- 09/03/20 08:54:16 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairCore/src/UdpSocket.h
r178 r363 14 14 #define UDPSOCKET_H 15 15 16 #include <unistd.h>17 #include <stdint.h>18 16 #include <Object.h> 19 17 … … 76 74 * \param message message 77 75 * \param message_len message length 76 * \param dst_id id of the dst if multiple connection (quick and dirty hack for sido, only works on NRT) 78 77 */ 79 void SendMessage(const char *message, size_t message_len );78 void SendMessage(const char *message, size_t message_len,int dst_id=0); 80 79 81 80 /*! … … 84 83 * Receive a message and wait up to timeout. \n 85 84 * If src and src_len are specified, the source of the message will be 86 * copied in the src buffer. \n85 * copied in the src buffer. Source is the Flair name of sender\n 87 86 * Note that in case of a broadcast socket, own messages are filtered and 88 87 * are not received. … … 93 92 * \param src buffer to put source name 94 93 * \param src_len buffer length 94 * \param src_id id of the src, to be used for sending if multiple connection (quick and dirty hack for sido, only works on NRT) 95 95 * 96 96 * \return size of the received message 97 97 */ 98 98 ssize_t RecvMessage(char *buf, size_t buf_len, Time timeout, char *src = NULL, 99 size_t *src_len = NULL );99 size_t *src_len = NULL,int *src_id=NULL); 100 100 101 101 void NetworkToHost(char *data, size_t dataSize);
Note:
See TracChangeset
for help on using the changeset viewer.