Remote command example

Remote command example

#include <io> #include <read> #include <float> #include <string> #include <core> #include <write> #include <define> #include <socket> forward public callback (event); new remote_command_buffer[10]; public callback (event) { switch(event) { case Remote_Command: { new len; len = buf_len(Remote_Command); read_buf(Remote_Command, len, remote_command_buffer); } } return 0; } main() { Init(Remote_Command); while(1) { Delay(1000); } }