Hi all,
I am having a small issue when sending data over a TCP socket. Basically I need to send a carraige return as an ASCII code at the end of our data (to signify the end of data stream).
The ASCII code is Alt+13 but when typing this into our perl script it actually performs a carriage return as opposed to converting it ready to send. I have tryed other ASCII chars and they are fine but when they are typed into the perl script they are converted correctly on screen to their ASCII code in unix
In our unix test file (as attached) when viewed in unix appears as ^M but this does not appear to work if I try to send that - it is sent as text. We have tryed excaping it first with a backslash with still no luck?
Any ideas greatly appreciated,
Thanks
- free mp3 downloads and streaming
I am having a small issue when sending data over a TCP socket. Basically I need to send a carraige return as an ASCII code at the end of our data (to signify the end of data stream).
The ASCII code is Alt+13 but when typing this into our perl script it actually performs a carriage return as opposed to converting it ready to send. I have tryed other ASCII chars and they are fine but when they are typed into the perl script they are converted correctly on screen to their ASCII code in unix
In our unix test file (as attached) when viewed in unix appears as ^M but this does not appear to work if I try to send that - it is sent as text. We have tryed excaping it first with a backslash with still no luck?
Any ideas greatly appreciated,
Thanks
- free mp3 downloads and streaming