Page 1 of 1

TCP ASCII Mode

Posted: Tue Sep 26, 2017 12:09 pm
by addonray
Hi,

I'm porting a Rabbit project to NetBurner - wondering if there's a way to set the TCP sockets to ASCII mode for easier porting. Rabbit has sock_gets(), sock_puts(), etc. that append or strip CR LF characters from the end of strings.

Thanks,

Ray

Re: TCP ASCII Mode

Posted: Tue Sep 26, 2017 3:30 pm
by TomNB
Hello Ray,

We do not have that type of function, but you could create a wrapper function that strips them off and calls writestring(), or do a writeall() with a length of 2 less than the strlen.

Re: TCP ASCII Mode

Posted: Tue Sep 26, 2017 3:48 pm
by addonray
Thank you, Tom.