🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #7037

getsockopt() with SO_ERROR: help!

#7037
From: jay dubb
Date: Mon, 18 Mar 1991 17:28
14 lines
1371 bytes
I am posting this for a friend of mine who doesn't have access to USENET,
so please respond directly to mlevin@jade.tufts.edu.

I am having problems using getsockopt() with option SO_ERROR on a
connected TCP socket.  First of all, what is supposed to be the type
(size, format, etc.) of the destination (optval) parameter? And, how does
one interpret whatever information getsockopt() puts there when it finds
an error? Secondly, my call to getsockopt with optval set to a char[100]
array, and optlen pointing to an int which equals 100, sets errno to 22 =
invalid argument, which is not on the list of things that getsockopt can
set errno to (according to the manual, anyways). Any ideas as to what's
causing this? Thanks in advance.  Please reply directly do:

			Mike Levin (mlevin@jade.tufts.edu)
Technical Details
Message-ID: <1964@brchh104.bnr.ca>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!cunews!bnrgate!brtph3!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!cunews!bnrgate!brtph3!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request
From: jdubb@bucsf.bu.edu (jay dubb)
Newsgroups: comp.sys.sun
Subject: getsockopt() with SO_ERROR: help!
Keywords: Miscellaneous
Message-ID: <1964@brchh104.bnr.ca>
Date: 18 Mar 91 17:28:00 GMT
Sender: news@brchh104.bnr.ca
Organization: Sun-Spots
Lines: 14
Approved: Sun-Spots@rice.edu
X-Original-Date: 2 Mar 91 18:23:26 GMT
X-Sun-Spots-Digest: Volume 10, Issue 57, message 20
X-Note: Submissions: sun-spots@rice.edu, Admin: sun-spots-request@rice.edu