-->
Page 1 of 2

Can CommandProcessing service be added to TCP server?

PostPosted: Wed Aug 26, 2015 4:53 am
by helpme
I just discovered a wonderful feature added to SMING. The HardwareSerial UART port can now do command processing through the CommandProcessing service by running
Code: Select allSerial.commandProcessing(true);
Is it possible to do the same thing for a TCP server? It looks like a good feature to have.

Re: Can CommandProcessing service be added to TCP server?

PostPosted: Wed Aug 26, 2015 1:05 pm
by hreintke
LS,
For TCP the CommandProcessor is implemented in TelnetServer.
See application Telnet_TCPServer_TCPClient for example usage.

Re: Can CommandProcessing service be added to TCP server?

PostPosted: Thu Aug 27, 2015 2:25 am
by helpme
hreintke wrote:LS,
For TCP the CommandProcessor is implemented in TelnetServer.
See application Telnet_TCPServer_TCPClient for example usage.


Thanks. I was hoping that TCPserver can do the same like TelnetServer and UART. Maybe something like
Code: Select allTCPServer.commandProcessing(true);


Can something similar be done?

Re: Can CommandProcessing service be added to TCP server?

PostPosted: Mon Aug 31, 2015 9:11 am
by hreintke
LS,
I think conceptually you are right.
Now the commandprocessor is implemented in telnetserver which is derived from tcpserver.
It could also be part of the baseclass tcpserver and be switched on/off with specific class functions.

I'll check into it but don't expect a very short time solution due to other activities