delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/08/30/08:33:18

From: mphalpin AT iag DOT net ("Sonic Junior")
Subject: Here are 3 socket problems I've found in GNUWIN32
30 Aug 1997 08:33:18 -0700 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <199708260207.WAA20559.cygnus.gnu-win32@iag.net>
Mime-Version: 1.0
Original-To: "GNU Win 32" <gnu-win32 AT cygnus DOT com>
X-MSMail-Priority: Normal
X-Priority: 3
X-Mailer: Microsoft Internet Mail 4.70.1162
Original-Sender: owner-gnu-win32 AT cygnus DOT com

	I have the following problems with socket functions:

	(1) SO_USELOOPBACK (error message: SO_USELOOPBACK - not supported)

	opt = 1;
	if (setsockopt(fd, SOL_SOCKET, SO_USELOOPBACK, (char *)&opt, sizeof(opt))
< 0)
        		report_error("setsockopt(SO_USELOOPBACK) %s:%s", cptr);

	(2) SNDBUF and RCVBUF (not even defined)

	if (setsockopt(fd, SOL_SOCKET, SO_SNDBUF, (char *)&opt, sizeof(opt)) < 0)
        report_error("setsockopt(SO_SNDBUF) %s:%s", cptr);

	(3) select() doesn't allow for enough fds

	select only allows for around 60 or so FDs, while some Unix apps use 4095!

	(4) /proc/net/tcp isn't output. This is used by Identd. If anyone wants to
add this, I'll send them all the info. It shouldn't be too hard. This isn't
a problem, but it is something I think should be added.

	- SJ
	
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019