- // notice that wxSOCKET_LOST_FLAG is always taken into account but the
- // return value depends on whether it is included in flags or not: if it
- // is, and the connection is indeed lost, true is returned, but if it isn't
- // then the function returns false in this case
- //
- // false is always returned if we returned because of the timeout expiration
- bool DoWait(long timeout, wxSocketEventFlags flags);
+ // notice that wxSOCKET_LOST_FLAG is always taken into account and the
+ // function returns -1 if the connection was lost; otherwise it returns
+ // true if any of the events specified by flags argument happened or false
+ // if the timeout expired
+ int DoWait(long timeout, wxSocketEventFlags flags);