TCP Client.c
TCP Client.c
h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <string.h>
int main(){
int client_sock;
char buff[BUFF_SIZE];
struct sockaddr_in server_addr; /* server's address information */
int msg_len, bytes_sent, bytes_received;
buff[bytes_received] = '\0';
printf("Reply from server: %s", buff);
}