Cheers,
leroy.
Cheers,
leroy.
This is really bugging me (no pun intended), everything was going fine till I hit this.
Cheers,
leroy.
Cheers,
leroy.
So I'm stumped. The solution? Recoded the thing as a Windowed application. Not really a good solution, but it'll do for the moment.
Cheers,
leroy.
The problem I has is this...
I have a class called SSCSocket which is derived from the CSocket class, now I've created an overide for the OnAccept() virtual function.
When trying this out though, the OnAccept() function is never executed.
Here's some code...
class SSCSocket : public CSocket
{
public:
SSCSocket();
virtual ~SSCSocket();
public:
virtual void OnAccept(int nErrorCode);
virtual void OnClose(int nErrorCode);
};
Is declared in the header, and here's the implementation
void SSCSocket::OnAccept(int nErrorCode)
{
HandleNewClient();
}
HandleNewClient() is a global function I use to accept the socket and create things.
Shouldn't OnAccept() be called when a connection is sitting in the queue, waiting to be accepted? Or do I need to do something else?
Cheers,
leroy.
------------------
David "Dak Lozar" Loeser
bcs@iglou.com