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 

TClientSocket OnRead doesn't read

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





PostPosted: Thu Sep 14, 2006 1:14 am    Post subject: TClientSocket OnRead doesn't read Reply with quote



I have an application I'm working on in BDS2006. However, I'm using the
TClientSocket component not found on the tool palette.

The problem is that the OnRead event handler does not execute when responses
are sent back from the server. The responses are there as I can see them
using a packet sniffer.

Anyone had any similar issues.

-jda
Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Thu Sep 14, 2006 3:16 am    Post subject: Re: TClientSocket OnRead doesn't read Reply with quote



"Josh Arnold" <jarnold (AT) atterotech (DOT) com> wrote in message
news:450864ec$1 (AT) newsgroups (DOT) borland.com...

Quote:
The problem is that the OnRead event handler does not execute
when responses are sent back from the server.

Are you using the TClientSocket in blocking or non-blocking mode? The
OnRead event is not used in blocking mode. For non-blocking mode, are you
using the TClientSocket in a thread that has an active message queue?


Gambit
Back to top
Josh Arnold
Guest





PostPosted: Thu Sep 14, 2006 5:26 am    Post subject: Re: TClientSocket OnRead doesn't read Reply with quote



I am using non-Blocking mode and it is NOT running in
a separate thread. I declare the socket at runtime and assign the event
handler.

I posted a better description of my issue in the sockets newsgroup.

Are there any issues with creating the socket at runtime and assigning the
event handler?



"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> wrote in message
news:450883b1$1 (AT) newsgroups (DOT) borland.com...
Quote:

"Josh Arnold" <jarnold (AT) atterotech (DOT) com> wrote in message
news:450864ec$1 (AT) newsgroups (DOT) borland.com...

The problem is that the OnRead event handler does not execute
when responses are sent back from the server.

Are you using the TClientSocket in blocking or non-blocking mode? The
OnRead event is not used in blocking mode. For non-blocking mode, are you
using the TClientSocket in a thread that has an active message queue?


Gambit

Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Thu Sep 14, 2006 5:28 am    Post subject: Re: TClientSocket OnRead doesn't read Reply with quote

"Josh Arnold" <jdaudio02 (AT) hotmail (DOT) com> wrote in message
news:4508a1cd$1 (AT) newsgroups (DOT) borland.com...

Quote:
I am using non-Blocking mode and it is NOT running in
a separate thread. I declare the socket at runtime and
assign the event handler.

Then please show your actual code.

Quote:
Are there any issues with creating the socket at runtime
and assigning the event handler?

No.


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.