PDA

Click to See Complete Forum and Search --> : Sockets


Drunken F00l
Mar 8th, 2003, 10:30 PM
I can do a little bit of sockets in Windows, but how do you do it in Linux? Are the functions the same or do you need to use different ones? What are the headers? Also how can you get a socket to listen on a port but accept many connections at a time (both win and lin)? I'm familiar with this in VB but not C++. I need any info to not be specific to any libs or MFC. Thanks a lot!

CornedBee
Mar 9th, 2003, 07:43 AM
The sockets are nearly the same, with only a few differences. In particular all functions of the windows sockets that start with an upper case letter are not available in UNIX, at least not with these names.

Drunken F00l
Mar 9th, 2003, 12:25 PM
Where can I find the names I need?

CornedBee
Mar 9th, 2003, 12:27 PM
MSDN

Drunken F00l
Mar 10th, 2003, 05:39 PM
I only found http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winsock/winsock/windows_sockets_functions_2.asp which is a good list but if I click one of those WSA functions I can't find a Linux equivalent on that page (or anywhere). Where on MSN is it?:confused:

CornedBee
Mar 11th, 2003, 01:37 PM
Why should MS list the Linux equivalent? All functions that use only lower case characters are the SAME in Linux. Those that start with an upper case letter are NOT available in Linux and there probably is no equivalent (those are extended windows-specific functions).

Drunken F00l
Mar 11th, 2003, 05:34 PM
OK, thanks.