Ignore:
Timestamp:
01/02/13 08:04:37 (11 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Further cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/xplcommon/win32/LocalSocket.h

    r22 r26  
    5858    static void setupPath(char* dest, const char* name);
    5959
    60     /**
    61      * Create a new named pipe with the proper settings. The handle
    62      * will be returned on successful creation.
    63      *
    64      * @param name the name of the pipe to create. It should be the
    65      * final name, not the user-given one.
    66      *
    67      * @return the handle if the pipe could be created.
    68      */
    69     static HANDLE createNamedPipe(const char* name, bool overlapped);
    70 
    71     /**
    72      * Connect the named pipe with the given handle.
    73      *
    74      * @return true if the connection is established. If overlapped is
    75      * 0 and false is returned, it has failed. If overlapped is not 0,
    76      * the failer status of the Failable associated with the
    77      * Overlapped instance provides failure information.
    78      */
    79     static bool connectNamedPipe(HANDLE handle, Overlapped* overlapped);
    80 
    8160protected:
    8261    /**
     
    10584{
    10685    snprintf(dest, 256, "\\\\.\\pipe\\%s", name);
    107 }
    108 
    109 //------------------------------------------------------------------------------
    110 
    111 inline bool LocalSocket::connectNamedPipe(HANDLE handle, Overlapped* overlapped)
    112 {
    113     OVERLAPPED* ol = (overlapped==0) ? 0 : overlapped->get();
    114     bool result = ConnectNamedPipe(handle, ol);
    115     if (overlapped!=0) {
    116         DWORD dummy = 0;
    117         result = overlapped->getResult(dummy, handle);
    118     }
    119     return result;
    12086}
    12187
Note: See TracChangeset for help on using the changeset viewer.