 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Alex Tyutyunik Guest
|
Posted: Wed Oct 22, 2003 9:20 am Post subject: D7. TTCPClient.OnReceive not triggers |
|
|
Hello All. Can you help me?
With the help of the given component i connect to a server (not my), I pass
authorization and I subscribe for the certain portions of the data, I use
methods ReceiveLn, SendLn, SendBuf. All this in separate procedure.
Then these data starts to be strewed to my client, but TTCPClient.OnReceive
handler does not work, when they come, why?
Roundabout the way, has made the timer which works 10 times a second, and in
it I call ReceiveLn for a component, but it loads the processor on all of
100 % and does not approach me.
The main questions: why does not work event OnReceive and what to make, that
worked without the above mentioned timer?
I set my client to Blocking mode and Non-Blocking, Without a difference...
Need your help, all...
|
|
| Back to top |
|
 |
Stanley Guest
|
Posted: Wed Oct 22, 2003 10:41 am Post subject: Re: D7. TTCPClient.OnReceive not triggers |
|
|
Użytkownik "Alex Tyutyunik" <alt7 (AT) dise (DOT) donbass.com> napisał w wiadomości
news:3f964bbf (AT) newsgroups (DOT) borland.com...
| Quote: | Hello All. Can you help me?
With the help of the given component i connect to a server (not my), I
pass
authorization and I subscribe for the certain portions of the data, I use
methods ReceiveLn, SendLn, SendBuf. All this in separate procedure.
Then these data starts to be strewed to my client, but
TTCPClient.OnReceive
handler does not work, when they come, why?
Roundabout the way, has made the timer which works 10 times a second, and
in
it I call ReceiveLn for a component, but it loads the processor on all of
100 % and does not approach me.
The main questions: why does not work event OnReceive and what to make,
that
worked without the above mentioned timer?
I set my client to Blocking mode and Non-Blocking, Without a difference...
Need your help, all...
|
I don't know enough about this topic, but I think the problem is with using
ReceiveLn.
It is waiting for End of Line character. You should use difrent method.
Stan
|
|
| Back to top |
|
 |
|
|
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
|
|