Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #10083

Re: Small tcp client for review

From Ralph Spitzner <rasp@spitzner.org>
Newsgroups comp.lang.c
Subject Re: Small tcp client for review
Date 2011-09-10 08:40 +0200
Organization Hanswurst & Kaspar Hauser Ltd.
Message-ID <4cdrj8-osh.ln1@spitzner.org> (permalink)
References <d9a9b4b9-9a5e-4107-b518-a13904e69021@g19g2000prf.googlegroups.com> <8c91b24f-a4c2-4572-8e45-c0d1ce627ef8@eb1g2000vbb.googlegroups.com> <fe2d0e7c-e924-4bf8-a9cf-5e82e2ba177e@a14g2000prl.googlegroups.com>

Show all headers | View raw


Ram Prasad wrote:
>   while ( nleft>  0 ) {
>      if ( (nwritten = write(sockd, buffer, nleft))<= 0 ) {
>        if ( errno == EINTR )

Use send, or sendto here and set your signals, you might
wait(tm) forever otherwise :-P

	-rasp

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Small tcp client for review Ram  Prasad <ramprasad.ap@gmail.com> - 2011-09-09 10:46 -0700
  Re: Small tcp client for review Ben Bacarisse <ben.usenet@bsb.me.uk> - 2011-09-09 20:44 +0100
  Re: Small tcp client for review Gene <gene.ressler@gmail.com> - 2011-09-09 13:43 -0700
    Re: Small tcp client for review Ram  Prasad <ramprasad.ap@gmail.com> - 2011-09-09 23:02 -0700
      Re: Small tcp client for review Ralph Spitzner <rasp@spitzner.org> - 2011-09-10 08:40 +0200
      Re: Small tcp client for review Seebs <usenet-nospam@seebs.net> - 2011-09-13 06:44 +0000
  Re: Small tcp client for review Nobody <nobody@nowhere.com> - 2011-09-10 08:25 +0100

csiph-web