Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!serv.hinet.net!news-peer.nctu.edu.tw!news.nctu.edu.tw!spring.edu.tw!cyclic.gsl.net!news.gsl.net!news-peer.gsl.net!news.gsl.net!news.maxwell.syr.edu!news.bc.net!nntp.portal.ca!cynic.portal.ca!not-for-mail From: cjs@cynic.portal.ca (Curt Sampson) Newsgroups: comp.os.linux.networking,comp.unix.bsd.netbsd.misc Subject: Re: 'sockaddr' type versus 'osockaddr', under linux & bsd... help! Date: 27 Mar 1997 04:48:38 -0800 Organization: Internet Portal Services, Inc. Lines: 16 Message-ID: <5hdqb6$916@cynic.portal.ca> References: <5h9l4q$m3f@tempo.univ-lyon1.fr> NNTP-Posting-Host: cynic.portal.ca Xref: euryale.cc.adfa.oz.au comp.os.linux.networking:73363 comp.unix.bsd.netbsd.misc:5700 In article <5h9l4q$m3f@tempo.univ-lyon1.fr>, David Faure <dfaure@SabPC.resi.insa-lyon.fr> wrote: >I don't understand the difference between sockaddr and osockaddr >(apart from the fact that sockaddr begins with the length ... that's for >the structure difference ...). When should I use one or the other ? You should always use sockaddr, not osockaddr. The latter is there only to support binary compatability with releases of BSD prior to 4.3-Reno. cjs -- Curt Sampson cjs@portal.ca Info at http://www.portal.ca/ Internet Portal Services, Inc. Through infinite myst, software reverberates Vancouver, BC (604) 257-9400 In code possess'd of invisible folly.