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 

Sockets problem

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi (General)
View previous topic :: View next topic  
Author Message
Dean
Guest





PostPosted: Fri Aug 29, 2003 9:23 pm    Post subject: Sockets problem Reply with quote



I have a problem with outgoings packets. As I understand it, I'm meant
to put outgoing packets (this is client sending back to server) in the
OnClientWrite event handler.

Problem is, it's not getting called. I can build the packet, and put in
OnClientWrite the line to send the packet to the Winsock buffer, but it's
never reaching that point. Even if I call ClientSocket1.Socket.Write(0).

What triggers the OnClientWrite? The server is ready and waiting for me to
send packets, but it's not getting triggered.

Or can I just ignore OnClientWrite and just do
ClientSocket1.Socket.WriteBuf(x, sizeof(x)) whenever I want and just check
for an error message coming back to say buffer full?

If the latter, what is the point of OnClientWrite?

Thanks,

D



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi (General) 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.