Re: How can I make a PERFECT RE-USABLE SOCKET ?
- From: "Arkady Frenkel" <arkadyf@xxxxxxxxxxxxxxxx>
- Date: Mon, 25 Jul 2005 10:55:40 +0200
RegQueryValue(Ex) used to read registry
Arkady
"Novice" <Novice@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:5944848B-0BDE-4811-910F-0423A527BD2F@xxxxxxxxxxxxxxxx
> Then.. Is there any function that can detect it? (T-T)...
>
>
> --
> ( NOVICE )
> Student~
> Seoul. Korea.
>
>
> "Arkady Frenkel" wrote:
>
>> You can only decrease registry value TcpTimedWaitDelay ( which is not
>> recommended way because it's common parameter for all winsock )
>> Arkady
>>
>> "Novice" <Novice@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> news:E4356583-F456-4FE7-9127-5E78CC014AF2@xxxxxxxxxxxxxxxx
>> > Subject : How can I make a PERFECT RE-USABLE SOCKET ?
>> >
>> >
>> >
>> > I have some problems to make a network component.
>> >
>> > It is a "TIME_WAIT" state on client socket.
>> >
>> > When the socket is in "TIME_WAIT" state, it cannot connect into any
>> > remote
>> > server.
>> >
>> > How can I avoid "TIME_WAIT" state?
>> >
>> > Or, is there any function that can check a socket in "TIME_WAIT" or not
>> > ?
>> >
>> >
>> >
>> > I disconnect all sessions using "DisconnectEx" function for re-using
>> > socket.
>> >
>> > And, all sockets are pre-binded.
>> >
>> > There are no problem when I disconnect client from server.
>> >
>> > But, client disconnects itself and then socket falls in "TIME_WAIT"
>> > state.
>> >
>> > I tryed to remove that state, but I can't. (failed..all)
>> >
>> > I applied handshaking routine, LINGER option and changing into blocking
>> > mode..
>> >
>> > As you know, TIME_WAIT state's duration is so~~~~ long!!
>> >
>> > So, I want to know, how to check it or avoid it. ( TIME_WAIT state )
>> >
>> >
>> >
>> > --
>> > ( NOVICE )
>> > Student~
>> > Seoul. Korea.
>>
>>
>>
.
- References:
- How can I make a PERFECT RE-USABLE SOCKET ?
- From: Novice
- Re: How can I make a PERFECT RE-USABLE SOCKET ?
- From: Arkady Frenkel
- Re: How can I make a PERFECT RE-USABLE SOCKET ?
- From: Novice
- How can I make a PERFECT RE-USABLE SOCKET ?
- Prev by Date: Re: how to build a remote login application
- Next by Date: Re: how to build a remote login application
- Previous by thread: Re: How can I make a PERFECT RE-USABLE SOCKET ?
- Next by thread: Re: How can I make a PERFECT RE-USABLE SOCKET ?
- Index(es):
Relevant Pages
|
Loading