现在的位置: 首页 > 综合 > 正文

7.1-7.2备忘

2012年01月11日 ⁄ 综合 ⁄ 共 286字 ⁄ 字号 评论关闭

1.  发送UDP时, 物理SPU IP 根据slot号来确定

2. 物理SPU 的UDP返回需要添加SPUID

3. 一块物理SPU的操作才是阻塞的, 所以服务器收到UDP时应该先查看这张表

 typedef struct{

char ip[16];//可选

char opid[20];

int result;

}PHYSPU;

hash_map<const char* ip, PHYSPU physpu>

所以共享内存应该是

#define MAX_PHYSPU 10;

typedef struct{

hash_map<const char* ip, PHYSPU physpu>  map(MAX_PHYSPU);

}VMMSHM;

 

抱歉!评论已关闭.