int get_osd_oob_list(struct osd_node onode, struct list_head *head)
{
printf("\nEntering %s ", __func__);
char message[4096];
char oob_receive_buf[8192];
int ret, m_type, valid_len;
int failure_time = 0;
int socket_descriptor;
struct sockaddr_in sin;
int sin_len;
int port = OSD_RECEIVE_RESULT_PORT;
int is_cur_osd = (onode.osd_no == current_osd_no) ? 1:0;
CACHE_INFO("This time being processed osd_node is: no:%d and name %s and current restarted osdno:%d",\
onode.osd_no, onode.osd_address, current_osd_no);
CACHE_INFO("+++++++++In line%d and is_cur_osd :%d", __LINE__, is_cur_osd);
if(onode.osd_no == current_osd_no)
is_cur_osd = 1;
CACHE_INFO("++++++++++++++++IN line%d and is_cur_osd :%d", __LINE__, is_cur_osd);
memset(&sin, 0, sizeof(sin));
sin.sin_family=AF_INET;
si
udp发送完消息后要关闭端口描述符
最新推荐文章于 2022-07-13 20:57:23 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)