Telnet in a class
Posted: Tue Mar 16, 2010 10:38 am
Hello,
I moved the telnet example into a class, but cannot assign the callback methods to the command processor functions.
When I do:
I get:
Thanks!
Christoph
I moved the telnet example into a class, but cannot assign the callback methods to the command processor functions.
When I do:
Code: Select all
CmdCmd_func = ProcessCommand;
I can make them static and have it work, but then run into all kinds of other limitations of static methods.argument of type 'int (TelnetController::)(const char*, FILE*, void*)' does not match 'int (*)(const char*, FILE*, void*)'
Thanks!
Christoph