void UserInit(void); /* User must support the function : UserInit(); */ void UserLoopFun(void); /* User must support the function : UserLoopFun(); */ int UserCmd(unsigned char *Cmd,unsigned char *Response); /* When user want use COMMAND "19", User must support the function : UserCmd(); COMMAND "19" will pass the user command to function UserCmd(); If the function will return something back, must put the data on the output buffer "Response", and return value must >0 . */ void AddUserTimerFunction(void (*fun)(void),unsigned timems); /* The vxcomm.LIB support AddUserTimerFunction(); when user want to install a function, and for a period time the system will call the function, just call this function to install it. for example: unsigned cnt; void UserCount(void) { cnt++; } void UserInit(void) { AddUserTimerFunction(UserCount,10); // every 10 ms will call UserCnt } */ int EnableCom(int port); /* The function can force the eXserver to skip the com port */ int DisableCom(int port); /* The function can force the eXserver to re-work with the com port */ extern int SocketConnected; /* SocketConnected : total connect socket number */ extern int EchoMode; /* EchoMode: 0, default mode. 1, will add the command number to the echo message. for example: input: 10 output:107188E2 */