Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 264
  • Last Modified:

how to call your own overridden OnReceive()

I've overridden the CAsyncSocket::OnReceive(int nErrorCode) method..but I don't know how to call it...what should I pass in as nErrorCode?
0
jade03
Asked:
jade03
1 Solution
 
Jaime OlivaresSoftware ArchitectCommented:
You don't put anything in nErrorCode, it is a callback function, so Operating System will put some value there.
Normally it is zero, and when an error occurs during socket communication, it will become WSAENETDOWN value.
Typicall OnReceive() implementation has a Receive() function, see an example at:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_mfc_casyncsocket.3a3a.onreceive.asp


0
 
jade03Author Commented:
thanx! :)
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now