Re: Suggestions on how to handle this more efficiently

From: Marc Rochkind (rochkind_at_basepath.com)
Date: 09/04/03


Date: Thu, 04 Sep 2003 10:42:12 -0600

On Thu, 04 Sep 2003 16:54:54 +0100, Materialised
<materialised@ntlworld.com> wrote:

> Hello everyone,
> I have just started programming in c on freeBSD. I have been reading
> Beej's Guide to network programming, and am currently developing my first
> program, a tcp based 1 on one chat client and server.
>
> I am looking for suggestions on how I can handle the sending and
> recieving of the strings differently, rather than having a continuous
> loop running through the program, as to me this doesnt seem very
> efficient.
>

Can you be more specific about what it is that doesn't seem efficient to
you? That is, what is it that you are trying to minimize and what it is
about this program that you think isn't minimizing it.

(The program as you have written it can block in various places, and
blocking, assuming that there is nothing else that the program can usefully
do, is very efficient.)

--Marc



Relevant Pages

  • Re: FreeBSD 5.4: Is it generally unstable?
    ... just reading this mailing list will give you an overly negative ... > view of FreeBSD's stability. ... My experiences are that FreeBSD 5.4 ...
    (freebsd-stable)
  • FreeRadius 1.1.3 segmentation problem in Freebsd
    ... I am posting this question in FreeBSD mailing list. ... Starting - reading configuration files ... ... mschap: require_encryption = no ... unix: usegroup = no ...
    (freebsd-questions)
  • Re: FIN_WAIT_2 problem
    ... I'm not sure if I can help, but reading your post, I see that you've done 3 major upgrades in a row. ... FreeBSD 4.11 -> FreeBSD 6.1 ... Tomcat 4.0 -> Tomcat 5.5 ... I was reading that there are patches available that add a timeout option for the connection in FIN_WAIT_2 ... ...
    (comp.unix.bsd.freebsd.misc)
  • Re: Children - OT, sorry!
    ... analysis of my writing if I wanted to make use of that analysis. ... There's no point in following a bad guide which leads you astray. ... your reading ability is better than you ... had the college education that the reading analyser claimed you need ...
    (uk.people.support.depression)
  • Re: my arquitecture is...
    ... and the CD light turn off (the CD-ROM drive isn't reading anything) and the HD led stays on ... FreeBSD supports COMPAQ/HP Alpha, ...
    (freebsd-questions)