LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   How does Linux connect to the internet? (https://www.linuxquestions.org/questions/programming-9/how-does-linux-connect-to-the-internet-218348/)

testforechozero 08-16-2004 12:34 PM

How does Linux connect to the internet?
 
Is the socket system the same as in \/\/I/\/D0\/\/S?

Like, if I coded something on Windoze that I wanted to run on Linux, would I have to remove wsock.h?

Just a tad confusing to me, thanks for any help :D

kev82 08-16-2004 05:28 PM

as far as i know the windows sockets implemenation, is heavily based on the original bsd implementation which is the one linux uses, the socket(), connect(), accept() calls are the same i think, but the functions are defined in different headers. you can check which header by checking the man page of any particular function.

cracauer 08-17-2004 06:01 PM

It is very similar, but in Unix filehandles for files and sockets are the same, for Windoze they are not.

I recommend using a frontend mapper like SDL_net.

Martin


All times are GMT -5. The time now is 09:08 AM.