Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

CAsyncSocket::OnOutOfBandData 

Called by the framework to notify the receiving socket that the sending socket has out-of-band data to send.


virtual void OnOutOfBandData(
   int nErrorCode 
);

Parameters

nErrorCode

The most recent error on a socket. The following error codes apply to the OnOutOfBandData member function:

  • 0   The function executed successfully.

  • WSAENETDOWN   The Windows Sockets implementation detected that the network subsystem failed.

Out-of-band data is a logically independent channel that is associated with each pair of connected sockets of type SOCK_STREAM. The channel is generally used to send urgent data.

MFC supports out-of-band data, but users of class CAsyncSocket are discouraged from using it. The easier way is to create a second socket for passing such data. For more information about out-of-band data, see Windows Sockets: Socket Notifications.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.