mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-12 04:47:14 +02:00
readnlines->partialread, better debugging for TCP socket interface bug
This commit is contained in:
@ -25,6 +25,8 @@ class DataSocket {
|
||||
DataSocket(const DataSocket &) = delete;
|
||||
DataSocket &operator=(DataSocket const &) = delete;
|
||||
int getSocketId() const { return sockfd_; }
|
||||
int getFnum() const { return fnum_; }
|
||||
int setFnum(const int fnum);
|
||||
|
||||
int Send(const void *buffer, size_t size);
|
||||
|
||||
@ -82,6 +84,7 @@ class DataSocket {
|
||||
|
||||
private:
|
||||
int sockfd_ = -1;
|
||||
int fnum_ {0};
|
||||
};
|
||||
|
||||
}; // namespace sls
|
||||
|
Reference in New Issue
Block a user