Connect( SOCKET_ID, wxEVT_SOCKET, (wxObjectEventFunction) (wxEventFunction) (wxSocketEventFunction) CIRC_Server::OnSocketEvent );
m_sock = new wxSocketClient();
m_sock->SetEventHandler(*this, SOCKET_ID);
m_sock->SetNotify(wxSOCKET_CONNECTION_FLAG |
wxSOCKET_INPUT_FLAG |
wxSOCKET_LOST_FLAG);
m_sock->Notify(TRUE);
wxIPV4address addr;
addr.Hostname( server );
addr.Service ( port );
m_sock->Connect(addr, FALSE);
m_sock->WaitOnConnect(10); ==> Just waits there, but I asked my friend who was running the test-server, and he saw a connection from me... But the event never got through to me?
------------------------ Website: www.KaReLs0ft.be |