PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Noms de domaine > comp.protocols.tcp-ip > TIME_WAIT
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.protocols.tcp-ip TCP and IP network protocols.

TIME_WAIT

Réponse
 
LinkBack Outils de la discussion
Vieux 04/04/2007, 14h23   #1
ramaprabha
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut TIME_WAIT

HI All,

I terminate (ctrl+C) my tcp server when one(or more) of the
client(s) were connected.
And unable to restart again for a long time. The netstat shows the
port is in TIME_WAIT.

How to handle such that even after abrupt shutdown the server should
restart successfully on the same port.

Thanks
Prabu

  Réponse avec citation
Vieux 04/04/2007, 17h49   #2
Rick Jones
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: TIME_WAIT

A setsockopt() with SO_REUSEADDR before you attempt to bind() to the
well-known port number for your server.

The works of W. Richard Stevens and/or Stallings re network
programming would probably be good things to have handy on the shelf.

rick jones
--
Wisdom Teeth are impacted, people are affected by the effects of events.
these opinions are mine, all mine; HP might not want them anyway...
feel free to post, OR email to rick.jones2 in hp.com but NOT BOTH...
  Réponse avec citation
Vieux 06/04/2007, 06h54   #3
ramaprabha
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: TIME_WAIT

On Apr 4, 9:49 pm, Rick Jones <rick.jon...@hp.com> wrote:
> A setsockopt() with SO_REUSEADDR before you attempt to bind() to the
> well-known port number for your server.
>
> The works of W. Richard Stevens and/or Stallings re network
> programming would probably be good things to have handy on the shelf.
>
> rick jones
> --
> Wisdom Teeth are impacted, people are affected by the effects of events.
> these opinions are mine, all mine; HP might not want them anyway...
> feel free to post, OR email to rick.jones2 in hp.com but NOT BOTH...



Dear Rick Jones,

Thanks. It works fine.
Thanks for your

With Regards,
Prabu

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 07h03.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,12491 seconds with 11 queries