Changeset 14:e46811708269 in vscpl


Ignore:
Timestamp:
04/06/13 07:32:54 (11 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
hg-Phase:
(<MercurialRepository 1 'hg:/home/ivaradi/xplane/hg/vscpl' '/'>, 'public')
Message:

Added test programs for a server serving multiple clients

Files:
2 added
3 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
  • test/Makefile.am

    r11 r14  
    11INCLUDES=-I$(top_srcdir)/src -I$(top_builddir)/src
    22
    3 noinst_PROGRAMS=testthread testmutex testcondvar testevent testlocsock testblkstream
     3noinst_PROGRAMS=testthread testmutex testcondvar testevent testlocsock testblkstream testmultiserver testmulticlient
    44
    55if TARGET_API_POSIX
     
    2828
    2929testrandom_SOURCES=testrandom.cc
     30
     31testmultiserver_SOURCES=testmultiserver.cc
     32
     33testmulticlient_SOURCES=testmulticlient.cc
Note: See TracChangeset for help on using the changeset viewer.