Changeset 19:54c3f68d2d46 in xplcommon for src


Ignore:
Timestamp:
12/29/12 18:47:52 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Fixed problems with non-blocking mode and extended the socket test program to actually communicate

Location:
src/xplcommon/posix
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/xplcommon/posix/ServerSocket.cc

    r14 r19  
    4848{
    4949    if (fd<0) setErrorCodeFromErrno();
     50    else if (waiter!=0) setNonBlocking(fd);
    5051}
    5152
  • src/xplcommon/posix/Socket.h

    r16 r19  
    8989{
    9090    if (fd<0) setErrorCodeFromErrno();
     91    else if (waiter!=0) setNonBlocking(fd);
    9192}
    9293
     
    9798    BufferedStream(waiter, fd, readingCapacity, writingCapacity)
    9899{
     100    if (waiter!=0) setNonBlocking(fd);
    99101}
    100102
Note: See TracChangeset for help on using the changeset viewer.