So im trying to connect to tor control port 9051.
Sending anything with Send() function results in 0 response. Using PuTTy theres no such problem i mean im connecting to 127.0.0.1:9051 and lets say i send "bonjour" i will get following error: "514 Authentication required." and thats ok.

Now thats my code:
class CSockety : public CAsyncSocket
{
public:
void OnReceive(int nError){AfxMessageBox(_T("received message"));}
void OnSend(int nError){AfxMessageBox(_T("sent message"));}
};

CSockety socket_tor;
socket_tor.Create();
socket_tor.Connect(_T("127.0.0.1"),9051);
socket_tor.Send("bonjour",strlen("bonjour"));



Is there anything wrong ;/ ? OnReceive MessageBox doesnt appear when i call last line from my MFC Dialog based application -> button

OnSend works properly, whats wrong with receiving ;/ ?