atomicgs12
asked on
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
Cheers
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.
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.
ASKER
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
Thanks
>>>>> 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.
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER