Changeset 387 in flair-src for trunk/lib/FlairCore/src/UdpSocket_impl.cpp
- Timestamp:
- Dec 21, 2020, 2:49:53 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note:
See TracChangeset
for help on using the changeset viewer.