I'm writing a mobile application which needs to connect to a server using dial-up ( CSD ) connection. An additional request is that it needs to use TCP over PPP ( the server is using such combination ).
I know how to get the CSD connection using RAS API. But what I'm asking is how to 开发者_高级运维get a TCP socket that "uses" this connection underneath.
Many thanks in advance.
Can you set up the connection in the settings | connection settings applet, and choose modem instead of gprs/cellular/bluetooth, then use connnection manager to initiate that connection. That will create a tcp/ip connection over csd, and you should just be able to open a socket in your code to the right ip address...
精彩评论