| View previous topic :: View next topic |
| Author |
Message |
Josh Arnold Guest
|
Posted: Thu Sep 14, 2006 1:14 am Post subject: TClientSocket OnRead doesn't read |
|
|
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
|
Posted: Thu Sep 14, 2006 3:16 am Post subject: Re: TClientSocket OnRead doesn't read |
|
|
"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
|
Posted: Thu Sep 14, 2006 5:26 am Post subject: Re: TClientSocket OnRead doesn't read |
|
|
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
|
Posted: Thu Sep 14, 2006 5:28 am Post subject: Re: TClientSocket OnRead doesn't read |
|
|
"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 |
|
 |
|