General discussion

Locked

Socket connection doesn't stop reading

By Koetsier ·
We're in progress of having a windows 2000 server connecting to another system (datapoint) via a program which opens the connection, sends a ascii stream and then should wait for the response ascii string without closing the connection. Only after the response has been filed, the connection should be closed.
The datapoint system however doesn't recognise the program to be finished sending data, and therefore doesn't process the request. only when we close the socket, the datapoint starts processing the request and sends back the data (but we dont have the connection session anymore and can't read the response.)
We tried to send ascii 26 (eof) at the end of the string, but this doesn't work. We don't see any additional data in the tcp packets that could identify a handshake. Is there some handshake that we can try?

This conversation is currently closed to new comments.

4 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Socket connection doesn't stop reading

by Koetsier In reply to Socket connection doesn't ...

We don't have very much knowledge, nor sources of the datapoint system, we only know it is communicating over the socket and we see our request coming in.

Collapse -

Socket connection doesn't stop reading

by nschulz In reply to Socket connection doesn't ...

This is normally a programming issue. The application would determine what handshaking it is looking for. Try an ascii 4 which I have also seen used as an eof. Maybe try a break.

Check out Advanced Programming in the UNIX Environment by W. Richard Stevens. Its the Bible on Sockets and Windows is just a poor man's UNIX.

Thanks Norm

Collapse -

Socket connection doesn't stop reading

by Koetsier In reply to Socket connection doesn't ...

Looks like your answer didn't help me, but as it seems to be the correct answer, thanks.

Collapse -

Socket connection doesn't stop reading

by Koetsier In reply to Socket connection doesn't ...

This question was closed by the author

Back to Web Development Forum
4 total posts (Page 1 of 1)  

Related Discussions

Related Forums