Page 1 of 1

more than one command processor

Posted: Mon Apr 12, 2010 11:23 am
by ckoehler
Hello,

Is it possible to use more than one command processor* for TCP/IP or Telnet connections? It seems like it should be fine, but the Callback functions throw me off; they look like pointers, so would I overwrite the first command processor callbacks when I try and setup the second?

Thanks!

Christoph


* I am referring to chapter 5 of The NetBurner Runtime Libraries User Manual.

Re: more than one command processor

Posted: Wed Apr 14, 2010 9:11 am
by pbreed
Your going to have to make your call backs decide which type of command parser they want to be.

When a new connection is made you get to return a void * from CmdConnect_func

All your processing call backs get this void * so they can look at that ata blob and decide
how they want to respond.