Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 08-16-2004, 12:34 PM   #1
Registered: Feb 2004
Location: Pennsylvania
Distribution: Ubuntu 7.10 (Gutsy)
Posts: 43

Rep: Reputation: 15
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
Old 08-16-2004, 05:28 PM   #2
Senior Member
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Rep: Reputation: 51
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.
Old 08-17-2004, 06:01 PM   #3
Registered: Jul 2004
Location: Boston, MA, USA
Distribution: FreeBSD, Debian/AMD64, Ubuntu/i386
Posts: 59

Rep: Reputation: 15
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.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to connect to Internet with Linux ? MaaSTaaR Linux - General 13 08-11-2005 01:16 PM
New to linux, cannot connect to the internet. calathar Linux - Networking 30 04-27-2005 04:57 AM
Linux SuSE 9.0 Cannot connect to the Internet rangerssg Linux - Software 20 11-01-2004 05:52 PM
can't connect to the internet:linux dont read my internet address droplsh Linux - General 1 02-29-2004 07:32 PM
I can't connect to the Internet in Linux scracker Linux - Networking 5 09-20-2003 04:50 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:20 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration