🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.listserv.polip
Article #11280

Re: Serial w DNS

#11280
From: Piotr Piatkowski
Date: Fri, 30 May 1997 15:01
22 lines
1540 bytes
Bartosz Maruszewski <bart@newton.zsmeie.torun.pl> wrote:
: Pawlus Jerzy <yppawlus@cyf-kr.edu.pl> naskrobal(a):
: : Zgodnie z RFC 1035 pole serial w SOA jest 32-bitową liczbą typu
: : "unsigned integer". Czyli o zakresie 0 .. 4294967295.

: 32-bitowy to jest typ unsigned long
: typ unsigned int to 65535 (16-bitowy)

: moze sie czepiam ;)

Nie, nie czepiasz się tylko masz przyzwyczajenia z DOS'a. A tak 
naprawdę, to nie ma żadnej gwarancji co do długości "int" w C. 
W C++ (myślę że w C tak samo) jest tylko powiedziane że:

1 == sizeof(char) <= sizeof(short) <= sizeof(int) <= sizeof(long)

Ale na większości unixów sizeof(int) = 4

Co wcale zresztą nie musi oznaczać że jest to liczba 32 bitowa :->

-- 
Piotr Piątkowski, Uczelniane Centrum Informatyki, AGH Krakow, POLAND
Technical Details
Message-ID: <5mmq4k$30r$1@galaxy.uci.agh.edu.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!news.icm.edu.pl!ict.pwr.wroc.pl!agh.edu.pl!agh.edu.pl!not-for-mail
References: <Pine.LNX.3.95.970529160324.5083A-100000@digilab.digilab.com.pl> <5mm6d3$bim$1@info.cyf-kr.edu.pl> <5mmo8c$1sg$2@flis.man.torun.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!news.icm.edu.pl!ict.pwr.wroc.pl!agh.edu.pl!agh.edu.pl!not-for-mail
From: kompas@galaxy.uci.agh.edu.pl (Piotr Piatkowski)
Newsgroups: pl.listserv.polip
Subject: Re: Serial w DNS
Date: 30 May 1997 17:01:40 +0200
Organization: University of Mining & Metallurgy
Lines: 22
Message-ID: <5mmq4k$30r$1@galaxy.uci.agh.edu.pl>
References: <Pine.LNX.3.95.970529160324.5083A-100000@digilab.digilab.com.pl> <5mm6d3$bim$1@info.cyf-kr.edu.pl> <5mmo8c$1sg$2@flis.man.torun.pl>
NNTP-Posting-Host: galaxy.uci.agh.edu.pl
Mime-Version: 1.0
X-Newsreader: TIN [UNIX 1.3 unoff BETA 970307; sun4m SunOS 5.5.1]
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit