Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Feb 2000 16:12:52 +1030
From:      Greg Lehey <grog@lemis.com>
To:        Zhibing Wang <wang_zb@yahoo.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Help!!!! (Socket Programming)
Message-ID:  <20000219161252.U41278@freebie.lemis.com>
In-Reply-To: <20000219053207.24316.qmail@web121.yahoomail.com>
References:  <20000219053207.24316.qmail@web121.yahoomail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
[Format recovered--see http://www.lemis.com/email/email-format.html]

On Friday, 18 February 2000 at 21:32:07 -0800, Zhibing Wang wrote:
> Hi everybody:

> I am doing some simple socket programming on FreeBSD 3.2. A client
> connects to a server, sends several packets, then waits for
> answer. I use send(), and recv().
>
> The problem is, everytime the client only sends one packet then
> segmentation falut, core dumpped. And the server ( recv() used in a
> loop) received that packet a thousand times.
>
> Please tell me what's worng wiht me. It is really painful.

You made a programming error.

Greg
--
When replying to this message, please copy the original recipients.
For more information, see http://www.lemis.com/questions.html
Finger grog@lemis.com for PGP public key
See complete headers for address and phone numbers


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000219161252.U41278>