How do you call your function in cod2?
Like this
PHP Code:
foo("1.1.1.1", 28962);
PHP Code:
int port;
char *srt;
if ( ! stackGetParams("si", &srt, &port)) { // fetches first parameter as int, 2nd as string
stackPushUndefined();
return;
}