🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #13862

BSD sockets, TCP.

#13862
From: "Flavio Costa"
Date: Sun, 07 Jan 2001 19:17
63 lines
3428 bytes
This is a multi-part message in MIME format.

------=_NextPart_000_0017_01C078C3.2FFF7300
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hola: tengo un problema con sockets en Linux y programando en ANSI C.
El problema es que cuando cierro los sockets (sean clientes o =
servidores, y al finalizar el programa) ejecuto el comando "netstat -t" =
para ver es estado quedan los puertos de comunicaci=F3n. Lo que obtengo =
es que los puertos quedan con un estado "TIME_WAIT" por un periodo de =
aproximadamente unos 10-15 segundos; y luego de ese tiempo (cuando =
desaparecen de la lista del "netstat -t") si puedo volver a usar esos =
puertos.

=BFQue estoy haciendo mal? =BFComo puedo solucionarlo? Agradecer=EDa =
cualquier sugerencia.=20

Gracias! Flavio.

------=_NextPart_000_0017_01C078C3.2FFF7300
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4134.600" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hola: tengo un problema =
con&nbsp;sockets en Linux y=20
programando en ANSI C.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>El problema es que cuando cierro los =
sockets (sean=20
clientes o servidores, y al finalizar el programa) ejecuto el comando =
"netstat=20
-t" para ver es estado&nbsp;quedan los&nbsp;puertos de comunicaci=F3n. =
Lo que=20
obtengo es que los puertos&nbsp;quedan con un estado "TIME_WAIT" por un =
periodo=20
de&nbsp;aproximadamente unos 10-15 segundos; y luego de ese tiempo =
(cuando=20
desaparecen de la lista del "netstat -t") si puedo volver a usar esos=20
puertos.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>=BFQue estoy haciendo mal? =BFComo =
puedo solucionarlo?=20
Agradecer=EDa cualquier sugerencia. </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Gracias! =
Flavio.</FONT></DIV></BODY></HTML>

------=_NextPart_000_0017_01C078C3.2FFF7300--


-- 
Posted from tango.SoftHome.net [204.144.231.49] 
via Mailgate.ORG Server - http://www.Mailgate.ORG
Technical Details
Message-ID: <003601c078de$51af7520$61813dc8@costa>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!newsfeed.mesh.ad.jp!news.tele.dk!212.177.105.133!news.mailgate.org!tango.SoftHome.net!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,241546c864b85bd3,start
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2001-01-07 11:19:14 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!newsfeed.mesh.ad.jp!news.tele.dk!212.177.105.133!news.mailgate.org!tango.SoftHome.net!not-for-mail
From: gurK@softhome.net ("Flavio Costa")
Newsgroups: es.comp.os.linux.programacion
Subject: BSD sockets, TCP.
Date: 7 Jan 2001 20:17:08 +0100
Organization: Mailgate.ORG Server - http://www.Mailgate.ORG
Lines: 63
Message-ID: <003601c078de$51af7520$61813dc8@costa>
NNTP-Posting-Host: tango.SoftHome.net
Mime-Version: 1.0
Content-Type: multipart/alternative;
 boundary="----=_NextPart_000_0017_01C078C3.2FFF7300"
X-Trace: news.mailgate.org 978895028 694 204.144.231.49 (Sun, 7 Jan 2001 16:02:08 -0300)
X-Complaints-To: tango.SoftHome.net@abuse.net abuse@mailgate.org
NNTP-Posting-Date: 7 Jan 2001 19:17:08 GMT
Mail-From: gurK@softhome.net from tango.SoftHome.net [204.144.231.49]
X-URL: http://www.Mailgate.ORG