2个回答
展开全部
if(CPublic::Link_Mode==UDP)
{
tcpsocket_deal.Send(m_send_message,m_send_message.GetLength(),0);
}
else if(CPublic::Link_Mode==TCP Client)
{
UDP_Server.SendTo(m_send_message,m_send_message.GetLength(),m_link_port,m_IP_destination,0);
}
else if(CPublic::Link_Mode==TCP Server)
{
sockClient.Send(m_send_message,m_send_message.GetLength(),0);
// CTCPIPDlg::sockClient.Send(CPublic::Send_Data,Send_i_cnt,0);
}
{
tcpsocket_deal.Send(m_send_message,m_send_message.GetLength(),0);
}
else if(CPublic::Link_Mode==TCP Client)
{
UDP_Server.SendTo(m_send_message,m_send_message.GetLength(),m_link_port,m_IP_destination,0);
}
else if(CPublic::Link_Mode==TCP Server)
{
sockClient.Send(m_send_message,m_send_message.GetLength(),0);
// CTCPIPDlg::sockClient.Send(CPublic::Send_Data,Send_i_cnt,0);
}
追问
能加注释吗?我对Socket不太懂
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询