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 

D7. TTCPClient.OnReceive not triggers

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock
View previous topic :: View next topic  
Author Message
Alex Tyutyunik
Guest





PostPosted: Wed Oct 22, 2003 9:20 am    Post subject: D7. TTCPClient.OnReceive not triggers Reply with 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...


Back to top
Stanley
Guest





PostPosted: Wed Oct 22, 2003 10:41 am    Post subject: Re: D7. TTCPClient.OnReceive not triggers Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock 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.