buff2[102410];
int
receiveLen;
/调用accept函数,等待客户端的连接/
client_fd=accept(sockfd,(struct
sockaddr
)&client_sockaddr,&sin_size
/调用recv函数接收客户端的请求/
recvbytes=recv(client_fd,buf,BUFFER_SIZE,0)
typedef
int
(WINAPI
ICEPUB_TCPSENDANDRECEIVETEXT)(char
sendBuff,
int
sendBuffLen,char
recvBuff,int
recvMaxLen,char
serverIP,int
serverPort);
ICEPUB_TCPSENDANDRECEIVETEXT
icePub_tcpSendAndReceiveText
=
0;
HINSTANCE
hDLLDrv
=
LoadLibrary
("icePubDlldll");
if(hDLLDrv)
{
icePub_tcpSendAndReceiveText=(ICEPUB_TCPSENDANDRECEIVETEXT
)
GetProcAddress
(hDLLDrv,"icePub_tcpSendAndReceiveText");
}
if(icePub_tcpSendAndReceiveText)
receiveLen=icePub_tcpSendAndReceiveText(buf,recvbytes),buff2,102410,"19216812",8000);
if(hDLLDrv)
FreeLibrary(hDLLDrv);
AfxMessageBox
(buff2);不了解ET的,点击 >
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)