🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #35199

Re: nnrpd daemon (-D) mode fixes

#35199
From: Andrew Gierth
Date: Fri, 05 Feb 1999 00:00
19 lines
1735 bytes
>>>>> "bill" == bill davidsen <davidsen@tmr.com> writes:

 bill> This patch addresses one bug (wrong data type) and one missing
 bill> feature (nicekids). The type was a struct defined as
 bill> sockaddr_in and used with a case where sockaddr was
 bill> required. Because I'm not sure all systems will have the same
 bill> size for both, and my compiler whines about the original, I
 bill> defined the value correctly and dropped the cast.

Pardon me asking, but are you new to socket programming or something?

The original code was correct in this respect. This is why accept()
et. al. have an additional size parameter for the address. The cast is
something of a historical crock, but is nevertheless correct.

-- 
Andrew.

Technical Details
Message-ID: <873e4kprj6.fsf@erlenstar.demon.co.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <79eufj$7nh0$1@newssvr04-int.news.prodigy.com>

Show Full Headers
Complete Article Headers
Message-ID: <873e4kprj6.fsf@erlenstar.demon.co.uk>
Subject: Re: nnrpd daemon (-D) mode fixes
Date: Fri, 05 Feb 1999 00:00:00 +0000
From: Andrew Gierth <andrew@erlenstar.demon.co.uk>
References: <79eufj$7nh0$1@newssvr04-int.news.prodigy.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 441101617
X-NNTP-Posting-Host: erlenstar.demon.co.uk:194.222.144.22
X-Mayan-Date: Long count = 12.19.5.16.10; tzolkin = 4 Oc; haab = 3 Pax
X-Complaints-To: abuse@demon.net
X-Trace: news.demon.co.uk 918244132 nnrp-06:1610 NO-IDENT erlenstar.demon.co.uk:194.222.144.22
Organization: disorganised
X-Attribution: AG
X-Pgp-0x0E9FFBE9: 87 25 7F 14 41 24 B3 51 E0 19 8B DE 49 74 0C 29
X-P-Persistent-Headers: are a bad idea.
Newsgroups: news.software.nntp
X-Post-Filter: postfilter v0.01 alpha