hello
send plese the surce code in c of client_socket.zip
help create clent server program
hel comunicate server ok mailer
mail.iol.it
send string end revive string help!!!!
c surce compile not run error programm crash program help!!! plese or send surce a winsock dll
compiled in dev c++
lib used
Dev-Cpp/lib/libwsock32.a
Dev-Cpp/lib/libiberty.a
/* client.c - code for example client program that uses TCP */
#include <windows.h>
// #define closesocket close
//#include <sys/types.h>
#include <winsock.h>
#include <stdio.h>
#include <string.h>
//#include<stdio.h>
//#include<sys/types.h>
//#include<sys/socket.h>
//#include<netdb.h>
//#include<netinet/in.h>
//#include <stdlib.h>
#define Max 8000
int main(void) {
int sd;
struct sockaddr_in client;
struct hostent *hp;
unsigned short port = 25;
char buff[Max];
/* Dobbiamo riempire la struttura client ma prima
* ci occorrono alcune
* informazioni che ricaviamo appoggiandoci
* alla struttura hp
*/
hp = gethostbyname("mail.iol.it");
bzero(&client, sizeof(client));
client.sin_family = AF_INET;
client.sin_port = htons(port);
client.sin_addr.s_addr =((struct in_addr*)(hp->h_addr))->s_addr;
/* Creiamo il socket */
if((sd = socket(AF_INET, SOCK_STREAM, 0)) < 0)
printf("Errore nella creazione del socket!\n");
else
printf("socket creato!\n");
/* connettiamoci all'host */
if (connect(sd, (struct sockaddr *)&client, sizeof(client)) < 0)
printf("Errore di connessione!\n");
/* Inviamo dei dati */
//send(sd, "Dati inviati dal client", strlen("Dati inviati dal client")+1, 0);
/*riceviamo la risposta */
recv(sd, buff, sizeof(buff), 0);
printf("Risposta del server: %s\n", buff);
close(sd);
return EXIT_SUCCESS;
}
help plese comunicate help!!!
hello. tnaks, attend news
Anxiously awaiting BlueGUI v2
it informs to me when and ended BlueGUI v2