Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!news.ecn.uoknor.edu!paladin.american.edu!europa.chnt.gtegsc.com!news.kreonet.re.kr!usenet.kornet.nm.kr!agate!ihnp4.ucsd.edu!swrinde!howland.reston.ans.net!newsserver.jvnc.net!newsserver2.jvnc.net!netnews.upenn.edu!news.voicenet.com!goodnews.voicenet.com!omni2.voicenet.com!not-for-mail From: jbw@voicenet.com (J. Brian Waters) Newsgroups: comp.unix.bsd.misc Subject: sockets under 4.4 vs. 4.3 esp. recvmsg(2) Date: 20 Apr 1996 19:26:58 -0400 Organization: Voicenet - Internet Access - (215)674-9290 Lines: 18 Message-ID: <4lbrs2$631@omni2.voicenet.com> NNTP-Posting-Host: omni2.voicenet.com I am trying to get some code to work with the 4.4 socket calls that was written using the 4.3 calls it seems. Does anyone have some example code showing the use of recvmsg and sendmsg using AF_UNIX under 4.4 sockets? Also, in the PSD21 document, for AF_UNIX the bind call is shown as accepting a length argument of strlen(addr.sun_path) + sizeof(addr.sun_len) + sizeof(addr.sun_family). While under PSD20, it is shown as sizeof(struct socketaddr_un). Which one is correct? Can anyone recommend some good resources to read to come up to speed on socket programming quickly? jbw@jbw.jersey.net