*BSD News Article 87900


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!nntp.coast.net!news2.acs.oakland.edu!newsxfer.itd.umich.edu!newsxfer3.itd.umich.edu!howland.erols.net!vixen.cso.uiuc.edu!uwm.edu!lll-winken.llnl.gov!fnnews.fnal.gov!news.eng.convex.com!camelot.dsccc.com!sun004.bpd.dsccc.com!tttran
From: tttran@atm.dsccc.com (Tung Tran)
Newsgroups: comp.unix.bsd.misc
Subject: Berkeley socket question
Date: 30 Jan 1997 23:45:07 GMT
Organization: DSC Communications Corporation, Dallas, Texas USA
Lines: 10
Message-ID: <5crbq3$1pb@sun004.atm.dsccc.com>
NNTP-Posting-Host: sun116.bpd.dsccc.com
X-Newsreader: TIN [version 1.2 PL2]
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.misc:2151

Hi, I have a question about berkeley socket programming.
Normally we use socket to send msg from a process to another
different process (probably in a different node as well).
However, I'm handling an application that tries to use
socket to send msg to itself (the same process as the sender.)
Does anyone know how to do this? For example, if we use UDP/IP
datagram socket and use sendto() call, how do we specify its
parameters? If anyone has a simple example to show how it works
please let me know. Thanks a lot.