Article View: fr.comp.lang.c
Article #15179Utilisation TCPIP
From: Akeu
Date: Tue, 04 Oct 2005 11:58
Date: Tue, 04 Oct 2005 11:58
20 lines
1612 bytes
1612 bytes
Bonjour, j'utilise une socket tcpip entre 2 syst�mes pour envoyer de donn�es ( de qq octets � plusieurs 10Moctets) c'est a peut pr�s comme ca: Lecfd= accept(listenfd, (struct sockaddr *) NULL, NULL)) fcntl (Lecfd,F_SETFL,O_NONBLOCK); // pour ne pas �tre bloquant ..... .... // boucle // allocation m�moire de TableauAEnvoyer write ( Lecfd, TableauAEnvoyer, LongueurTableauAEnvoyer); // deallocation de la m�moire TableauAEnvoyer Pour l'instant j'ai une erreur d�s que je d�salloue la m�moire ( je pense que les datas ne sont pas encore parties ou lues par le 2ieme PC) J'aimerai savoir comment faire pour savoir quand je peux de nouveau reboucler et relancer des datas)
Technical Details
Message-ID:
<pan.2005.10.04.11.58.14.121495@Akeu.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!134.158.69.22.MISMATCH!in2p3.fr!oleane.net!oleane!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: f9822,cc457e6fd08331cd,start X-Google-Attributes: gidf9822,public X-Google-Language: FRENCH,ASCII Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!134.158.69.22.MISMATCH!in2p3.fr!oleane.net!oleane!not-for-mail From: Akeu <Akeu@Akeu.com> Newsgroups: fr.comp.lang.c Subject: Utilisation TCPIP Date: Tue, 04 Oct 2005 13:58:15 +0200 Organization: Guest of France Telecom's news reading service Lines: 25 Message-ID: <pan.2005.10.04.11.58.14.121495@Akeu.com> NNTP-Posting-Host: 194.206.160.115 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8bit X-Trace: s1.news.oleane.net 1128427195 7320 194.206.160.115 (4 Oct 2005 11:59:55 GMT) X-Complaints-To: abuse@oleane.net NNTP-Posting-Date: Tue, 4 Oct 2005 11:59:55 +0000 (UTC) User-Agent: Pan/0.14.2 (This is not a psychotic episode. It's a cleansing moment of clarity.)