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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
atomicgs12Author Commented:
Closing the thread. Nothing that helped with my problem was every added.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Software

From novice to tech pro — start learning today.