TCP ASCII Mode

Discussion to talk about software related topics only.
Post Reply
addonray
Posts: 19
Joined: Thu Sep 03, 2015 10:46 am

TCP ASCII Mode

Post 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
User avatar
TomNB
Posts: 576
Joined: Tue May 10, 2016 8:22 am

Re: TCP ASCII Mode

Post 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.
addonray
Posts: 19
Joined: Thu Sep 03, 2015 10:46 am

Re: TCP ASCII Mode

Post by addonray »

Thank you, Tom.
Post Reply