- Timestamp:
- Dec 21, 2020, 2:49:53 PM (4 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ReleaseNotes
r380 r387 1 1 * Actual Version: 2 3 - resolved bug with UdpSocket broadcast 4 5 ----------------------------------------------------------- 6 * Tag 0.3.1: 2 7 3 8 - added preliminary support for ugv and parrot sumo -
trunk/lib/FlairCore/src/UdpSocket.cpp
r363 r387 43 43 } 44 44 45 void UdpSocket::SendMessage(string message ) { pimpl_->SendMessage(message); }45 void UdpSocket::SendMessage(string message,int dst_id) { pimpl_->SendMessage(message,dst_id); } 46 46 47 47 ssize_t UdpSocket::RecvMessage(char *buf, size_t buf_len, Time timeout, char *src, -
trunk/lib/FlairCore/src/UdpSocket.h
r363 r387 66 66 * 67 67 * \param message message 68 * \param dst_id id of the dst if multiple connection (quick and dirty hack for sido, only works on NRT) 68 69 */ 69 void SendMessage(std::string message );70 void SendMessage(std::string message,int dst_id=0); 70 71 71 72 /*! -
trunk/lib/FlairCore/src/UdpSocket_impl.cpp
r364 r387 192 192 } 193 193 194 void UdpSocket_impl::SendMessage(string message ) {194 void UdpSocket_impl::SendMessage(string message,int dst_id) { 195 195 ssize_t written; 196 196 … … 208 208 } 209 209 #else 210 written = sendto(fd, message.c_str(), message.size(), 0, (struct sockaddr *)&sock_in, sizeof(struct sockaddr_in));210 written = sendto(fd, message.c_str(), message.size(), 0,(struct sockaddr *)&(sock_in[dst_id]), sizeof(struct sockaddr_in)); 211 211 if (written != (ssize_t)message.size()) { 212 self->Err("sendto error \n");212 self->Err("sendto error %i/%i\n",written,(ssize_t)message.size()); 213 213 } 214 214 -
trunk/lib/FlairCore/src/unexported/UdpSocket_impl.h
r363 r387 32 32 ~UdpSocket_impl(); 33 33 34 void SendMessage(std::string message );34 void SendMessage(std::string message,int dst_id); 35 35 void SendMessage(const char *msg, size_t msg_len,int dst_id); 36 36 ssize_t RecvMessage(char *msg, size_t msg_len, flair::core::Time timeout,
Note:
See TracChangeset
for help on using the changeset viewer.