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

  • 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?
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:

jade03Author Commented:
thanx! :)

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