Red de conocimiento informático - Problemas con los teléfonos móviles - Programación de la red Winapi

Programación de la red Winapi

Tea

buff 2[1024 * 10];

(Igual que las organizaciones internacionales) Organizaciones internacionales

recibirLen

/*Llamar al aceptar función y esperando conexión del cliente */

client_fd=accept(sockfd, (struct

sockaddr

*) amp; client_ sockaddr amp; sin_size

/*Llame a la función recv para recibir la solicitud del cliente*/

recvbytes=recv(client_fd, buf, BUFFER_SIZE, 0)

typedef

( Igual que organizaciones internacionales) Organizaciones internacionales

(WINAPI

ICEPUB _ TCP sendandreceivetext)(char)

*Enviar buffer,

(Igual que organizaciones internacionales) Organizaciones internacionales

Enviar buffer, char

*recvBuff, int

recvMaxLen, char*

serverIP , int

p>

puerto del servidor);

ICEPUB_TCPSENDANDRECEIVETEXT

*icePub_tcpSendAndReceiveText

=

0;

HINSTANCE

hDLLDrv

=

Cargando biblioteca

("icepubdll . dll");

IF (hDLLDrv)

{

icePub _ tcpSendAndReceiveText =(icePub _ tcpsenddreceivetext

*)

GetProcAddress

( hDLLDrv, " icePub _ tcpsenddreceivetext ");

}

if(icePub _ TCP sendandreceivetext)

recibir len = icePub _ tcpsendandrereceivetext (buf, recvbytes), buff2, 1024*10, " 192.168.1.2 ", 8000);

IF(hDLLDrv)

biblioteca gratuita (hDLLDrv);

AfxMessageBox

(buff 2);