Changeset 363 in flair-src for trunk/lib/FlairCore/src/unexported


Ignore:
Timestamp:
Sep 3, 2020, 8:54:16 AM (4 years 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/unexported/UdpSocket_impl.h

    r178 r363  
    3333
    3434  void SendMessage(std::string message);
    35   void SendMessage(const char *src, size_t src_len);
     35  void SendMessage(const char *msg, size_t msg_len,int dst_id);
    3636  ssize_t RecvMessage(char *msg, size_t msg_len, flair::core::Time timeout,
    37                       char *src = NULL, size_t *src_len = NULL);
     37                      char *src = NULL, size_t *src_len = NULL,int *src_id=NULL);
    3838
    3939private:
     
    4444  void Init(void);
    4545  const flair::core::UdpSocket *self;
    46   struct sockaddr_in sock_in;
     46  struct sockaddr_in *sock_in;
     47  size_t sock_in_size;
    4748#ifdef __XENO__
    4849  bool is_running;
Note: See TracChangeset for help on using the changeset viewer.