@@ -295,19 +295,19 @@ class Net_API SocketImpl: public Poco::RefCountedObject
295
295
// / If count is != 0, sends the given number of bytes, otherwise
296
296
// / sends all bytes, starting from the given offset.
297
297
// /
298
- // / On Linux, macOS and FreeBSD systems, the implementation
298
+ // / On Linux, macOS and FreeBSD systems, the implementation
299
299
// / uses sendfile() or sendfile64().
300
300
// / On Windows, the implementation uses TransmitFile().
301
301
// /
302
- // / If neither sendfile() nor TransmitFile() is available,
302
+ // / If neither sendfile() nor TransmitFile() is available,
303
303
// / or the socket is a secure one (secure() returne true),
304
304
// / falls back to reading the file block by block and calling sendBytes().
305
305
// /
306
306
// / Returns the number of bytes sent, which should be the same
307
307
// / as count, unless count is 0.
308
308
// /
309
309
// / Throws NetException (or a subclass) in case of any errors.
310
- // / Also throws a NetException if the socket has been set to
310
+ // / Also throws a NetException if the socket has been set to
311
311
// / non-blocking.
312
312
313
313
virtual int available ();
@@ -578,7 +578,7 @@ class Net_API SocketImpl: public Poco::RefCountedObject
578
578
SocketImpl (const SocketImpl&);
579
579
SocketImpl& operator = (const SocketImpl&);
580
580
581
- poco_socket_t _sockfd;
581
+ std::atomic< poco_socket_t > _sockfd;
582
582
Poco::Timespan _recvTimeout;
583
583
Poco::Timespan _sndTimeout;
584
584
bool _blocking;
@@ -636,7 +636,7 @@ inline bool SocketImpl::getBlocking() const
636
636
637
637
638
638
#if defined(POCO_OS_FAMILY_WINDOWS)
639
- #pragma comment(lib, "mswsock.lib")
640
- #endif
639
+ #pragma comment(lib, "mswsock.lib")
640
+ #endif
641
641
642
642
#endif // Net_SocketImpl_INCLUDED
0 commit comments