Changeset 14:e46811708269 in vscpl for src/hu/varadiistvan


Ignore:
Timestamp:
04/06/13 07:32:54 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Added test programs for a server serving multiple clients

Location:
src/hu/varadiistvan/scpl/io/_win32
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/hu/varadiistvan/scpl/io/_win32/LocalServerSocketBase.cc

    r9 r14  
    4848                             BufferedStream::DEFAULT_CAPACITY,
    4949                             0, 0);
    50     if (handle==0) {
     50    if (handle==INVALID_HANDLE_VALUE) {
    5151        setErrorCode(GetLastError());
    5252    }
  • src/hu/varadiistvan/scpl/io/_win32/LocalSocket.h

    r9 r14  
    100100                        0, 0, OPEN_EXISTING,
    101101                        FILE_FLAG_NO_BUFFERING | FILE_FLAG_OVERLAPPED, 0);
    102     if (handle==0) {
     102
     103    if (handle==INVALID_HANDLE_VALUE) {
    103104        setErrorCode(GetLastError());
    104105    }
    105106
    106     return handle!=0;
     107    return handle!=INVALID_HANDLE_VALUE;
    107108}
    108109
Note: See TracChangeset for help on using the changeset viewer.