Wednesday, February 3, 2016

About with C # GPRS network connection problems, thank you!




            


Now there on Windows mobile 5.0 development project, which requires the use of UDP data transfer. My problem is I do not know how to use C # code, dial-up connection GPRS network ???
I experimented with, if you are using HttpWebRequest make HTTP requests, PDA will automatically connect to the mobile GPRS network (cmnet). Then I opened my own udp program can transfer data to the specified ip address of the server port.
But I do directly Udp data transfer, PDA will not automatically dial a ....
I am looking for some information, class methods with RAS dial-up, and I tried, but without success.
Give some specific code? Some information is also OK! Preferably in C #.

Reply:
His top! Thank you, help!
Reply:
Nobody look at Oh ... help!
Reply:
No one encountered this problem, or are too lazy to go back ah? Help!
Reply:
You can use the function to establish a GPRS connection ConnMgrEstablishConnectionSync specific usage I have a transplant you look under C in C # on it
DWORD dwStatus = 0;
HANDLE hConnection;
CONNMGR_CONNECTIONINFO sConInfo;
memset (& amp; sConInfo, 0, sizeof (CONNMGR_CONNECTIONINFO));

sConInfo.cbSize = sizeof (CONNMGR_CONNECTIONINFO);
sConInfo.dwParams = CONNMGR_PARAM_GUIDDESTNET;
sConInfo.dwPriority = CONNMGR_PRIORITY_USERINTERACTIVE;
sConInfo.dwFlags = CONNMGR_FLAG_PROXY_HTTP | CONNMGR_FLAG_PROXY_WAP | CONNMGR_FLAG_PROXY_SOCKS4 | CONNMGR_FLAG_PROXY_SOCKS5;

sConInfo.bExclusive = FALSE;
sConInfo.bDisabled = FALSE;
sConInfo.guidDestNet = IID_DestNetInternet;


if (ConnMgrEstablishConnectionSync (& amp; sConInfo, & amp; hConnection, 10000, & amp;! dwStatus) = S_OK)
{
return TRUE;
}
return FALSE;
Reply:
mark
Reply:
mark
Reply:
mark

No comments:

Post a Comment