long COnlyClientDlg::TReadData(SOCKET hSock, int read_len){ int ret;static char ReadBuf[BUF_SIZE];SOCKET hAcceptSock;struct sockaddr_in local; /* Local machine address structure */long total_tim
SOCKET COnlyClientDlg::ResolveAndConnectHost(LPSTR lpHostName, int iSockPort){ //作为客户机 int ret;struct hostent FAR *host_ptr; /* Ptr to the host name */struct sockaddr_in dest; /* Addr of target ho
SOCKET COnlyServerDlg::GetSocketAndBind(int iSockPort){ //作为服务器 int ret;SOCKET hSock; /* Connection socket descriptor */struct sockaddr_in local; /* Local machine address structure*/int iSockType
COnlySe
if (!AfxSocketInit()) { AfxMessageBox(IDP_SOCKETS_INIT_FAILED); return FALSE; } /////////////////////////////////// //////////
WampServer2.1e-er
void CNetDomainDlg::OnBtnCalc() { // TODO: Add your control notification handler code here BYTE address1[4];//IP m_IPAddress1.GetAddress(address1[0],address1[1],address1[2],address1[3]); BYT
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号