[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


socket/bind/connect over PPP Windows and Windows CE

Posted on 2008-11-13
Medium Priority
Last Modified: 2013-12-17
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

Question by:atomicgs12
  • 3

Author Comment

ID: 22956693
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?
LVL 16

Expert Comment

by:George Tokas
ID: 22967421
Looks like there are your first steps in communication...:-)
Once we are all been there....
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.

Author Comment

ID: 22967752
I am using Visual Studio 2005 with Windows CE SDK 5.0/6.0 writing in C/C++. This is for a WinCE device.
LVL 39

Expert Comment

ID: 22968125
>>>>> 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.

Accepted Solution

atomicgs12 earned 0 total points
ID: 25427141
Closing the thread. Nothing that helped with my problem was every added.

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Web hosting control panels were first developed to make it faster and easier for most users to set up and operate websites. The graphical user interface (GUI) allows users to perform tasks by pointing and clicking rather than typing highly specific…
Mailbox Corruption is a nightmare every Exchange DBA wishes he never has. Recovering from it can be super-hectic if not entirely futile. And though techniques like the New-MailboxRepairRequest cmdlet have been designed to help with fixing minor corr…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Suggested Courses
Course of the Month19 days, 11 hours left to enroll

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question