Hi, You can access this function (recv as you say) via command function. Command function in your c++ code serves as an interface between tcl code and c++ code. All you need is adding some peace of code that controls wihch arguments passed by the tcl interpreter. Like that:
int MyAgent::command(int argc, const char*const* argv) {
if (argc==2)
{
if (strcmp(argv[1],"recv")==0) {
recv();
return (TCL_OK);
}
}
}
Best Regards.
Guzin Ulutas (CEng)
