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 > how to make a connect blocking
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.protocols.tcp-ip TCP and IP network protocols.

how to make a connect blocking

Réponse
 
LinkBack Outils de la discussion
Vieux 17/11/2006, 11h59   #1
adirtymindisajoyforever
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut how to make a connect blocking

hi all,

is there a way to make a connect block? iow, what status has the
server to be in to make a connect block? in the state bound the connect
fails, in the state listen the connect succeeds, even without accept.
system is solaris 9.

thanks for any reply.

  Réponse avec citation
Vieux 17/11/2006, 15h19   #2
James Carlson
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: how to make a connect blocking

"adirtymindisajoyforever" <getridofthespam@yahoo.com> writes:
> is there a way to make a connect block? iow, what status has the
> server to be in to make a connect block? in the state bound the connect
> fails, in the state listen the connect succeeds, even without accept.
> system is solaris 9.


connect() blocks by default.

What I *think* you're asking about is a way to make the server side
avoid sending SYN-ACK until accept() is called. No, there's no way to
do that on Solaris (or most systems for that matter). The kernel
manages the connection queue on listen sockets.

--
James Carlson, KISS Network <james.d.carlson@sun.com>
Sun Microsystems / 1 Network Drive 71.232W Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677
  Réponse avec citation
Vieux 19/11/2006, 12h09   #3
adirtymindisajoyforever
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: how to make a connect blocking


James Carlson schreef:

> "adirtymindisajoyforever" <getridofthespam@yahoo.com> writes:
> > is there a way to make a connect block? iow, what status has the
> > server to be in to make a connect block? in the state bound the connect
> > fails, in the state listen the connect succeeds, even without accept.
> > system is solaris 9.

>
> connect() blocks by default.
>
> What I *think* you're asking about is a way to make the server side
> avoid sending SYN-ACK until accept() is called. No, there's no way to
> do that on Solaris (or most systems for that matter). The kernel
> manages the connection queue on listen sockets.



Thanks for replying James. You were *thinking* right. I expected with
a server having a listen(fd,2) and not accepting, the third connect to
block
but it does not. Apparently I am confused aout the meaning of the
second parameter
of the listen() system call.


>
> --
> James Carlson, KISS Network <james.d.carlson@sun.com>
> Sun Microsystems / 1 Network Drive 71.232W Vox +1 781 442 2084
> MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677


  Réponse avec citation
Vieux 20/11/2006, 12h41   #4
James Carlson
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: how to make a connect blocking

"adirtymindisajoyforever" <getridofthespam@yahoo.com> writes:
> Thanks for replying James. You were *thinking* right. I expected with
> a server having a listen(fd,2) and not accepting, the third connect to
> block
> but it does not. Apparently I am confused aout the meaning of the
> second parameter
> of the listen() system call.


It's a limit on the number of completed connections waiting to be
accepted by the application.

--
James Carlson, KISS Network <james.d.carlson@sun.com>
Sun Microsystems / 1 Network Drive 71.232W Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677
  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 07h25.


É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,10852 seconds with 12 queries