I'm connecting from windows pc to a service which runs on Linux.
I'm using fsocketopen, fputs and fgets.
after sending my string to the server, I got stuck, and the port of the server
becomes unavailable for a few minutes ( meaning I'm killing the service)
anyone knows how to release the port after few seconds,
and if there are any known problems when connecting from windows (through ie)
to a Linux server ?
thanks
Guy
socket problem
Moderator: General Moderators
more details
after more investigation and debugging, I think that the problem is
that I get stuck with the buffer.
meaninig: only when I close my socket the service receives my string, but then I'm not there to get his answer.
when he sends me info I get it and when I send him info and close my socket he gets my info.
the problem is leaving the socket alive and completing the data transfer.
I hope I was more clear.
thanks
Guy
that I get stuck with the buffer.
meaninig: only when I close my socket the service receives my string, but then I'm not there to get his answer.
when he sends me info I get it and when I send him info and close my socket he gets my info.
the problem is leaving the socket alive and completing the data transfer.
I hope I was more clear.
thanks
Guy
thanks - problem solved
I think I've solved it changing the byte order on the server( I hope it will run the same on most Linux releases)
and using fread - im sending the data using fputs.
i hope it's not a probelm.
thanks again
Guy
and using fread - im sending the data using fputs.
i hope it's not a probelm.
thanks again
Guy