mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-10-29 20:41:28 +01:00
formatting
This commit is contained in:
1 parent
d7cc22f7ef
commit
281943eb69
5 files changed
+15
-28
No files matched your search
@@ -113,10 +113,9 @@ int DataSocket::Send(const void *buffer, size_t size) {
|
||||
#endif
|
||||
Timer timer;
|
||||
while (bytes_sent < bytes_expected) {
|
||||
this_send = ::send(
|
||||
getSocketId(),
|
||||
reinterpret_cast<const char *>(buffer) + bytes_sent,
|
||||
bytes_expected - bytes_sent, send_flags);
|
||||
this_send = ::send(getSocketId(),
|
||||
reinterpret_cast<const char *>(buffer) + bytes_sent,
|
||||
bytes_expected - bytes_sent, send_flags);
|
||||
if (this_send < 0 && errno == EINTR)
|
||||
continue; // interrupted by a signal, retry
|
||||
if (this_send <= 0)
|
||||
|
||||
Reference in new issue
Block a user