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


Ignore:
Timestamp:
Oct 6, 2021, 11:03:44 AM (2 months ago)
Author:
Sanahuja Guillaume
Message:

refactor nb_buffering

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/FlairCore/src/unexported/ui_com.h

    r445 r456  
    5151  void CheckConnection(void);
    5252private:
     53    //datasToSend and resumeTimes are pushed/pop together
    5354  std::vector<const flair::gui::SendData *> datasToSend;
    5455  std::vector<flair::core::Time> resumeTimes;
     
    6162  void SendNRT(char *buf, ssize_t size,int ttl);
    6263  void PushDatasToSend(const flair::gui::SendData *dataToSend);
     64  void UpdateResumeTime(const flair::gui::SendData *obj);//must be called with mutex locked
    6365  typedef struct {
    6466    char* buf;
     
    6971  } PushedData_t;
    7072  std::vector<PushedData_t> pushedDatas;
     73  size_t CalcBufferSize(const PushedData_t* ptr) const;//must be called with mutex locked
     74  PushedData_t* GetCorrespondingPushedData(const flair::gui::SendData *dataToSend);//returns null if no corresponding buffer
     75  void AddPushedData(const flair::gui::SendData *obj);
     76
    7177
    7278  static int compressBuffer(char *in, ssize_t in_size, char **out,
Note: See TracChangeset for help on using the changeset viewer.