Changeset 363 in flair-src for trunk/lib/FlairCore/src/UdpSocket.cpp


Ignore:
Timestamp:
Sep 3, 2020, 8:54:16 AM (14 months ago)
Author:
Sanahuja Guillaume
Message:

allow mutliple connection on udp (only nrt for the moment)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/FlairCore/src/UdpSocket.cpp

    r178 r363  
    3939UdpSocket::~UdpSocket() { delete pimpl_; }
    4040
    41 void UdpSocket::SendMessage(const char *message, size_t message_len) {
    42   pimpl_->SendMessage(message, message_len);
     41void UdpSocket::SendMessage(const char *message, size_t message_len,int dst_id) {
     42  pimpl_->SendMessage(message, message_len,dst_id);
    4343}
    4444
     
    4646
    4747ssize_t UdpSocket::RecvMessage(char *buf, size_t buf_len, Time timeout, char *src,
    48                             size_t *src_len) {
    49   return pimpl_->RecvMessage(buf, buf_len, timeout, src, src_len);
     48                            size_t *src_len,int *src_id) {
     49  return pimpl_->RecvMessage(buf, buf_len, timeout, src, src_len,src_id);
    5050}
    5151
Note: See TracChangeset for help on using the changeset viewer.