BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TIdTCPServer (Indy TCP Server) problems

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage)
View previous topic :: View next topic  
Author Message
Michele Santucci
Guest





PostPosted: Tue Jun 29, 2004 2:34 pm    Post subject: TIdTCPServer (Indy TCP Server) problems Reply with quote



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





PostPosted: Tue Jun 29, 2004 5:26 pm    Post subject: Re: TIdTCPServer (Indy TCP Server) problems Reply with quote




"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





PostPosted: Wed Jun 30, 2004 10:29 am    Post subject: Re: TIdTCPServer (Indy TCP Server) problems Reply with quote



"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





PostPosted: Wed Jun 30, 2004 5:43 pm    Post subject: Re: TIdTCPServer (Indy TCP Server) problems Reply with quote


"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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.