 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Dean Guest
|
Posted: Fri Aug 29, 2003 9:23 pm Post subject: Sockets problem |
|
|
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 |
|
 |
|
|
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
|
|