LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 10-14-2005, 07:34 PM   #1
Mercurius
Member
 
Registered: Jul 2005
Distribution: Slackware 11, Solaris 10
Posts: 143

Rep: Reputation: 15
Post setsockopt


Anyone has the idea of what the function does? I read the man pages, but all I found out is that it is used for setting socket options (valid information indeed! ) So I was studying Beej's code, and stumbled upon some parameteres which are not explained in the man page except the SOL_SOCKET which could (or could not) mean Socket Operating Leve - Socket. But there was some SO_REUSEADDR and a pointer to a yes which was initialized with 1. Any ideas anybody?
 
Old 10-15-2005, 11:59 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
"My" setsockopt man page says something about all possible options.
http://docs.sun.com/app/docs/doc/816...bb5esqd?a=view
Googling may help too.
 
Old 10-15-2005, 12:01 PM   #3
Mercurius
Member
 
Registered: Jul 2005
Distribution: Slackware 11, Solaris 10
Posts: 143

Original Poster
Rep: Reputation: 15
I have slack 10.1....you have Solaris?
 
Old 10-15-2005, 02:08 PM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Correct, setsockopt is hopefully not O/S specific.
I mean, some differences may exists between implementations, but SO_REUSEADDR is certainly widely available.
 
Old 10-15-2005, 05:25 PM   #5
Mercurius
Member
 
Registered: Jul 2005
Distribution: Slackware 11, Solaris 10
Posts: 143

Original Poster
Rep: Reputation: 15
Since your a SUN OS user, can you tell me for a newbie programmer in C what is better, Linux or Sun OS? Some friends told me that Sun OS is the best OS around, but still lacks much. What do you think?
 
Old 10-16-2005, 01:07 AM   #6
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
I agree with your friends.
 
Old 12-24-2005, 07:16 AM   #7
enthusiast_abdul
LQ Newbie
 
Registered: Oct 2005
Location: India
Distribution: Redhat 9.0
Posts: 20

Rep: Reputation: 0
In man setsockopt, you will find info. of how to set socket options. Now there are socket options specific to TCP, IP, RAW sockets, etc, which can be found in the specific man page. eg. man 7 tcp, man 7 ip, man 7 raw, etc. You can find SOCKET OPTIONS it the last of the each man page
 
  


Reply



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
setsockopt with level IPPROTO_UDP longp Linux - Networking 0 07-12-2005 10:10 AM
Socket Programming: setsockopt: Protocol not available bonhomme Programming 5 06-30-2004 11:52 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:58 AM.

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