October 21st, 1999, 10:43 AM
I'm trying to create a simple winsock app to connect to a server, send it integers or hexidecimal formated numbers then receive a reply. How do I create a buffer that can do this? I've tried using a char buffer, but I'm not able to get any response. The app is able to connect and send, but then hangs for about 3 minutes and closes the socket.
Code Phreak
October 22nd, 1999, 09:43 AM
Hi,
I'm not sure what you're doing or trying to do, but...
(a) why don't you post some code so we can see
(b) maybe one of the processes die and that results to closing the socket
(c) are the synchronization between the two processes OK? What I mean is are both trying to read or write at the same time?
(d) The easy part is creating the buffer, which can be any data structure, an array of chars or ints a struct etc...just call send() with the cast operator and pass the address and size of the data structure you choose to send.
Reading from a socket is just as easy.
Post again.
HTH