socket/bind/connect over PPP Windows and Windows CE

Basically I am trying to get some feedback, architecturally, on how to use PPP with socket/bind/connect calls in windows. I want to make PPP connection, programmatically with a windows CE device talking to a host PC computer. Normally it is my understanding that calling socket will use the first available service provider, and when they say service provider I am assuming TCP/IP, PPP and etc, then one calls bind and finally connect. In my case I want to ONLY use PPP. If that is the case will I have to programmatically open a PPP connection, say via the RAS functions, e.g. RASDial and etc. or is there some other way to force only a PPP socket binding? And of course please correct me on any of my assumptions

Cheers
atomicgs12Asked:
Who is Participating?
 
atomicgs12Connect With a Mentor Author Commented:
Closing the thread. Nothing that helped with my problem was every added.
0
 
atomicgs12Author Commented:
Sorry some other thoughts I forgot to add to the above question. When a socket is called how does the socket call connect to the com port in other words if there are three com ports, and say they are all serial, availabe on the machine/device how does socket know which one to connect to?
0
 
George TokasCommented:
Looks like there are your first steps in communication...:-)
Once we are all been there....
So:
Communication in win32/64 systems has more than one "manifestations"...
The one of them is serial, RS232 and otherslike that and USB...
The other one is using the winsock library that comes from windows socket...
That id TCP/IP and UDP....
All the functions you need are declared at winsock.h and in later header files like winsock2.h or whatever...
What you have to do is add those headers and libraries to your project, create an instance of a socket and follow guidelines...
Myself using C++ Builder and have components for the job...
So first of all we have to know your development tools...

George Tokas.
0
 
atomicgs12Author Commented:
I am using Visual Studio 2005 with Windows CE SDK 5.0/6.0 writing in C/C++. This is for a WinCE device.
Thanks
0
 
itsmeandnobodyelseCommented:
>>>>> When a socket is called how does the socket call connect to the com port in other words if there are three com ports, and say they are all serial, availabe on the machine/device how does socket know which one to connect to?

You neither connect to com nor to any serial port using sockets. You can only connect to a port of a network device which either is token ring or ethernet where it is the latter with a probability of 90 or more percent.

So to use sockets you need an existing network connection with some network protocol - normally TCP/IP -  configured onto.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.