Clone of mesa.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

12345678910111213141516
  1. #ifndef IPC_H
  2. #define IPC_H
  3. extern int MyHostName(char *nameOut, int maxNameLength);
  4. extern int CreatePort(int *port);
  5. extern int AcceptConnection(int socket);
  6. extern int Connect(const char *hostname, int port);
  7. extern void CloseSocket(int socket);
  8. extern int SendData(int socket, const void *data, int bytes);
  9. extern int ReceiveData(int socket, void *data, int bytes);
  10. extern int SendString(int socket, const char *str);
  11. extern int ReceiveString(int socket, char *str, int maxLen);
  12. #endif /* IPC_H */