| View previous topic :: View next topic |
| Author |
Message |
Michele Santucci Guest
|
Posted: Tue Jun 29, 2004 2:34 pm Post subject: TIdTCPServer (Indy TCP Server) problems |
|
|
Hello ng,
I have a problem with the component in subject ... The OnConnect event is
correctly trapped by the Indy TCP Server but not the OnDisconnect one...
where's the problem?
--
================================
Michele Santucci
Software Development Manager
Celin Avio S.r.l.
Via Fontevivo, 21/M 19100 La Spezia
tel. +39-0187564080
================================
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Tue Jun 29, 2004 5:26 pm Post subject: Re: TIdTCPServer (Indy TCP Server) problems |
|
|
"Michele Santucci" <michele.santucci.nospam (AT) nospam (DOT) celinavio.it> wrote in
message news:40e17e69$1 (AT) newsgroups (DOT) borland.com...
| Quote: | I have a problem with the component in subject ... The OnConnect
event is correctly trapped by the Indy TCP Server but not the
OnDisconnect one...
|
Can you be more specific please?
Gambit
|
|
| Back to top |
|
 |
Michele Santucci Guest
|
Posted: Wed Jun 30, 2004 10:29 am Post subject: Re: TIdTCPServer (Indy TCP Server) problems |
|
|
"Remy Lebeau (TeamB)" <gambit47.no.spam (AT) no (DOT) spam.yahoo.com> ha scritto nel
messaggio news:40e1a69f$1 (AT) newsgroups (DOT) borland.com...
| Quote: |
"Michele Santucci" <michele.santucci.nospam (AT) nospam (DOT) celinavio.it> wrote in
message news:40e17e69$1 (AT) newsgroups (DOT) borland.com...
Can you be more specific please?
|
I fixed this but I still have some problems with this component.
To received correctly the OnDisconnect event the TIdTCPServer
I had to 'flush' the whole read buffer by subsequent ReadLn.
Other problems came when the server application have to terminate
or when I simply have to force the clients disconnection when
I often got errors
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Wed Jun 30, 2004 5:43 pm Post subject: Re: TIdTCPServer (Indy TCP Server) problems |
|
|
"Michele Santucci" <michele.santucci.nospam (AT) nospam (DOT) celinavio.it> wrote in
message news:40e29662$1 (AT) newsgroups (DOT) borland.com...
| Quote: | To received correctly the OnDisconnect event the
TIdTCPServer I had to 'flush' the whole read buffer
by subsequent ReadLn.
|
I've never had to do that. OnDisconnect has always worked properly when I
try it.
| Quote: | Other problems came when the server application
have to terminate or when I simply have to force the
clients disconnection when I often got errors
|
You need to be more specific.
Gambit
|
|
| Back to top |
|
 |
|