p4_sock_util.h
来自「MPICH是MPI的重要研究,提供了一系列的接口函数,为并行计算的实现提供了编程」· C头文件 代码 · 共 55 行
H
55 行
#ifdef CAN_DO_SOCKET_MSGS#include <sys/socket.h>#endif#include <netdb.h>#ifdef P4BSD#include <sys/wait.h>#include <sys/resource.h>#endif#ifdef CAN_DO_SETSOCKOPT#include <netinet/tcp.h>#endif#define NET_RECV_GOOD 0#define NET_RECV_EOF -1 #define NET_EXEC 1#define NET_DONE 2#define NET_RESPONSE 3#ifndef SOCK_BUFF_SIZE#define SOCK_BUFF_SIZE 16384#endif#define UNRESERVED_PORT 5001struct net_message_t { int type:32; int port:32; int success:32; char pgm[256]; char host[128]; char am_slave[32]; char message[512];};/* Definitions for system messages between slaves *//* Macros to convert from integer to net byte order and vice versa */#ifdef P4BSD#define p4_i_to_n(n) (int) htonl( (u_long) n)#define p4_n_to_i(n) (int) ntohl( (u_long) n)#endif#ifdef P4SYSV#if defined(IPSC860) && !defined(IPSC860_SOCKETS)#define p4_i_to_n(n) (n)#define p4_n_to_i(n) (n)#else#define p4_i_to_n(n) (int) htonl(n)#define p4_n_to_i(n) (int) ntohl(n)#endif#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?