Click to See Complete Forum and Search --> : Ethernet yes, GPRS no
Albatross
March 12th, 2004, 05:18 AM
My server program has received messages from the client and sent back replies over ethernet.
Server has one socket and client has one socket. I use the CSocket and CArchive classes to serialize and send the messages on both sides.
But I am now connected over GPRS and the reply does not come back to the client app.
Has GPRS any attributes which allow only one-way communication?
The client is a WinCE handheld connected over GPRS and VPN with the server. The server is Windows 2003 Srv.
Any Ideas?
Albatross
March 12th, 2004, 06:23 AM
More news
In the Client using GPRS, the CSocket object receives no OnReceive() call from outside.
But ! if I put a line of pSocket->Receive(buf, ...)
then it will react to this ! Something comes....the buf is empty but it is better than nothing.
The socket on the client side which acts so strangely initiated the connection. Why isn't the OnReceive being called?
chishti_hameed
March 23rd, 2004, 08:36 AM
i hope ur problem is solved already but if not then try
CCeSocket as base class for client (WinCe)
Albatross
March 26th, 2004, 11:37 AM
I tried the CCeSocket as you suggested, using the default setting of "DATA_TYPE" in the constructor--and the OnReceive() function actually did react......
however the data was not deserialized.
I have a CFileSocket and CArchive solution for sending integers and strings all in one CMsg object.
But as soon an the CMsg object starts to Deserialize it crashes horribly.
I'm doing the solution with Synchronous Receive and Send until a miracle happens.
Anyway thank you for the hint.
crazyhill
August 25th, 2005, 05:02 AM
I also face the same problem.
The data cannot be sent from client to server via internet (using lan).
But when the client use GPRS modem, no response....
Have you solve the problem??
if ye, please help me too!
digitstudios
September 10th, 2005, 05:52 AM
you must set this parameter
InternetSession = InternetOpen(
TEXT(""), // agent
INTERNET_OPEN_TYPE_DIRECT , // access
NULL,, // proxy server
NULL, // defaults
0);
This option must be in your connection class.
Enjoy
P.S. remember... close handle at end!
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.