CWinSocketProtocol Class ReferenceBase class for CWinAsyncSocket protocol handlers.
More...
#include <WinAsyncSocket.h>
Inheritance diagram for CWinSocketProtocol:
[legend]Collaboration diagram for CWinSocketProtocol:
[legend]List of all members.
Detailed Description
Base class for CWinAsyncSocket protocol handlers.
Derive from this class to implement a protocol handler for TWinAsyncSocket.
Supports both TCP and UDP protocols.
- See also:
- TWinAsyncSocket, CWinAsyncSocket, CWinSocket
Member Function Documentation
| virtual HANDLE CWinSocketProtocol::GetDataReadyHandle |
( |
|
) |
[pure virtual] |
|
|
|
Return a valid handle if you want to receive data tx messages.
- Returns:
- Waitable event handle
- See also:
Implemented in CWspStream. |
| virtual BOOL CWinSocketProtocol::OnDataReady |
( |
|
) |
[pure virtual] |
|
| virtual BOOL CWinSocketProtocol::OnRead |
( |
int |
nErr |
) |
[pure virtual] |
|
|
|
Called when new data arrives.
- Parameters:
-
- Returns:
- Non-zero if success
- See also:
Implemented in CWspStream. |
| virtual BOOL CWinSocketProtocol::OnWrite |
( |
int |
nErr |
) |
[pure virtual] |
|
|
|
Called when there is data to be transmitted.
- Parameters:
-
- Returns:
- Non-zero if success
- See also:
Implemented in CWspStream. |
| void CWinSocketProtocol::SetAsyncSocket |
( |
CWinAsyncSocket * |
pSocket |
) |
[inline] |
|
|
|
Sets the attached socket.
- Parameters:
-
|
| void CWinSocketProtocol::SetSocket |
( |
CWinSocket * |
pSocket |
) |
[inline] |
|
|
|
Sets the attached socket.
- Parameters:
-
|
The documentation for this class was generated from the following file:
|