小
小胡1
Unregistered / Unconfirmed
GUEST, unregistred user!
不要求十分准确,能说明这两个属性的作用也行。[]
1 TIdTCPServer.ListenQueue
Inicates the mximum number of unresolved connection attempts allowed.
property ListenQueue: integer;
Description
ListenQueue is an Integer property that indicates the maximum number of unresolved connection attempts allowed for listener threads before exception is raised. ListenQueue is used as an argument when socket descriptors for ListenerThreads are during created during server activation.
Use OnListenException to provide an event handler for notifications of exceptions raised when ListenQueue is exceeded.
The default value for ListenQueue is IdListenQueueDefault as assigned in the Create constructor.
2 TIdTCPServer.TerminateWaitTime
Specifies the time a server should wait for terminating threads.
property TerminateWaitTime: Integer;
Description
TerminateWaitTime is an Integer property that identifies the total number of milliseconds that the server should wait, in TerminateAllThreads, for all threads to complete termination. TerminateWaitTime is an aggregate delay time, and allows TerminateAllThreads to monitor the Threads list every 250ms until TerminateWaitTime has elapsed.
The default value for TerminateWaitTime is 5000 (5 seconds). Use a larger value for TerminateWaitTime when the server handles a large number of peer connection threads, or when OnDisconnected event handling for the peer connection involves time intensive operations.
1 TIdTCPServer.ListenQueue
Inicates the mximum number of unresolved connection attempts allowed.
property ListenQueue: integer;
Description
ListenQueue is an Integer property that indicates the maximum number of unresolved connection attempts allowed for listener threads before exception is raised. ListenQueue is used as an argument when socket descriptors for ListenerThreads are during created during server activation.
Use OnListenException to provide an event handler for notifications of exceptions raised when ListenQueue is exceeded.
The default value for ListenQueue is IdListenQueueDefault as assigned in the Create constructor.
2 TIdTCPServer.TerminateWaitTime
Specifies the time a server should wait for terminating threads.
property TerminateWaitTime: Integer;
Description
TerminateWaitTime is an Integer property that identifies the total number of milliseconds that the server should wait, in TerminateAllThreads, for all threads to complete termination. TerminateWaitTime is an aggregate delay time, and allows TerminateAllThreads to monitor the Threads list every 250ms until TerminateWaitTime has elapsed.
The default value for TerminateWaitTime is 5000 (5 seconds). Use a larger value for TerminateWaitTime when the server handles a large number of peer connection threads, or when OnDisconnected event handling for the peer connection involves time intensive operations.