*BSD News Article 86029


Return to BSD News archive

Newsgroups: comp.unix.programmer,comp.unix.bsd.freebsd.misc
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!newsfeed.direct.ca!op.net!news.mathworks.com!howland.erols.net!newsserver.jvnc.net!newsreader.jvnc.net!netplex-tech.com!not-for-mail
From: vikas@netplex-tech.Com (Vikas Aggarwal)
Subject: UDP Sockets sendto() failures
Message-ID: <E3DxuK.6I8@netplex-tech.com>
Summary:  sendto() fails for UDP on FreeBSD 2.1
Lines: 11
Sender: news@netplex-tech.com
Organization: Netplex Technologies Inc.
X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
Date: Thu, 2 Jan 1997 14:35:08 GMT
Xref: euryale.cc.adfa.oz.au comp.unix.programmer:48262 comp.unix.bsd.freebsd.misc:33464

I dont know if this is a known fact, but on Linux 1.2 and FreeBSD 2.1
platforms, the sendto() call does not work (for UDP). Replacing the
sendto() with a connect() + send() sequence works though.

I dont want to post a test code snippet in case this is a known fact,
but in case it is not (is it in the FAQ), I will post the code snippet
which is failing (hope I am not making any mistakes in the code).

	-vikas
	Vikas Aggarwal