Club Builder - Foros de discusión Club Builder
Foro de C++Builder en español
 
 FAQFAQ   BuscarBuscar   MiembrosMiembros   Grupos de UsuariosGrupos de Usuarios   RegistrarseRegistrarse 
 PerfilPerfil   Entra para ver tus mensajes privadosEntra para ver tus mensajes privados   EntrarEntrar 

TidTCPServer con múltiples clientes conectados

 
Publicar nuevo tema   Responder al tema    Foros de discusión -> Consultas
Ver tema anterior :: Ver tema siguiente  
Autor Mensaje
Mensaje    Asunto: TidTCPServer con múltiples clientes conectados Responder citando

Que tal builderos, quisiera saber si alguien ya desarrollo alguna aplicacion cliente/servidor con componentes Indy 10 TIdTCPClient/TIdTCPServer, donde el servidor soporte múltiples conexiones de clientes. Hasta el momento logré hacer que funciones con un solo cliente, pero si conecto más de uno los datos se empalman. He buscado información en la red pero desafotrunadamente la mayoría están con Indy 9 y no me sirven. Agradecería mucho la ayuda proporcionada.

Gracias

Salu2
_________________
ISC
Dobermannmx
Volver arriba
Ver perfil de usuario Enviar mensaje privado Enviar email Visitar sitio web del autor MSN Messenger
Mensaje    Asunto: Responder citando

Existe una propiedad dentro del componente TIdTCPServer de nombre ListenQueue la cual permite "determinar" en teoria el numero de conexiones entrantes o atender por parte del servidor (componente), pero esto radica en las limitantes del S.O para atender a los clientes.

Yo uso el componente TIdTCPServer, con un valor de 15 en la propiedad antes mencionada y hasta la fecha no he tenido fallos en cuestion de que se conecten 5 o mas clientes al mismo tiempo, no ha llegado el caso de conectarse mas de 15 clientes al mismo tiempo asi que no puedo comentar, pero si he de asegurarte que funciona correctamente.

Cita:
Declaration
property ListenQueue: integer;
Summary
Indicates the maximum number of unresolved connection attempts allowed for a server listener thread.
Description
ListenQueue is an Integer property that indicates the maximum number of unresolved connection attempts allowed for each listener thread. When a listener thread has more pending connection requests than the value in ListenQueue, the MaxConnectionReply response is sent to the client and the new connection is closed.
The default value for ListenQueue is IdListenQueueDefault as assigned during initialization of the component. ListenQueue is used as an argument when socket descriptors for listener threads are created during server activation. Any change to the value in ListenQueue must be made prior to setting Active to True.



On the Windows platform, the default listen queue size can be determined by the Operating System.

Non-server versions of Windows 95, Windows NT, Windows 2000, and Windows XP are internally limited to a maximum of 5 queued connection requests per listening socket. Server versions of Windows NT, Windows 2000, and Windows XP are internally limited to a maximum of 200 queued connection requests per listening socket.

Setting ListenQueue to a larger value will not override any internal limitation of the Operating System.

See Also
TIdListenerThread, IdListenQueueDefault, MaxConnections, MaxConnectionReply, Active
Class
TIdCustomTCPServer
Copyright (c) 1993-2005, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.


Sacado de la ayuda de BCB2007
_________________
Cool
Volver arriba
Ver perfil de usuario Enviar mensaje privado Enviar email MSN Messenger
Mensaje    Asunto: Responder citando

Gracias César, le daré un vistazo a esa propiedad.

Salu2
_________________
ISC
Dobermannmx
Volver arriba
Ver perfil de usuario Enviar mensaje privado Enviar email Visitar sitio web del autor MSN Messenger
Mostrar mensajes de anteriores:   
Cambiar a:  
No puedes publicar temas nuevos en este foro
No puedes responder a temas en este foro
No puedes editar tus mensajes en este foro
No puedes borrar tus mensajes en este foro
No puedes votar en las encuestas de este foro


Hosting WordPress Indedmedia desde 3,99 €
© 2002–2026 Club Builder · Funciona con phpBB.