📄 audioserver.c
字号:
/* AudioServer.c - TCP server example */#include "sys/types.h"#include "stdio.h"#include "signal.h"#include "vxWorks.h" #include "taskLib.h"#include "tcpExample.h"VOID tcpRecvTask(int sFd);VOID tcpSendTask(int sFd);STATUS tcpServer (int SERVER_PORT_NM){ if (taskSpawn("tcpRecvTask", SERVER_WORK_PRIORITY, 0, SERVER_STACK_SIZE,(FUNCPTR) tcpRecvTask, 0, 0, 0,0,0, 0, 0, 0, 0, 0) == ERROR) { perror ("taskSpawn"); }}STATUS tcpClient (int SERVER_PORT_NM){ if (taskSpawn("tcpSendTask", CLIENT_WORK_PRIORITY, 0, SERVER_STACK_SIZE,(FUNCPTR) tcpSendTask, 0, 0, 0,0,0, 0, 0, 0, 0, 0) == ERROR) { perror ("taskSpawn"); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -