Page 2 of 2

PostPosted: May 16, 2006 @ 8:05am
by edge
If not specified, http requests connect through the default http port 80.

If you don't receive any messages in OnNetMessage(), the connection can't be made to the server.

PostPosted: May 16, 2006 @ 4:38pm
by Nic-Gun
ok then.. port 80 shouldn't be a problem.. now the problem is how can i reach the OnNetMessage() method.. i did put the

shared.ecd->net[0]->Init(ECONN_SOCKET, this);

code at OnInit() and it returns an E_OK.. do i need to add another method so that my program calls the OnNetMessage() method?

PostPosted: May 16, 2006 @ 6:34pm
by edge
The OnNetMessage event will be called when a connection with a server has been made, a previous connection has been closed or data is received. This should happen automatically when calling SendHTTPGet/SendHTTPPost. You can also try calling SearchHost() manually (with port 80), try your own local intranet as well as the online webserver. However, it still doesn't work when the connection has been denied.

Also, try building a test version for a mobile device as well (such as a Windows Mobile Pocket PC). This may work better because there are less restrictions from Windows Mobile than Windows XP related to networking.