Addition of two numbers on Server sent from Client [TCP] using C

tcpClient.c #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <netdb.h> #include <stdio.h> #include <unistd.h> #include <string.h> #include <strings.h> #define MAX_MSG 100 #define SERVER_ADDR “127.0.0.1” #define CLIENT_ADDR “127.0.0.1” #define SERVER_PORT 3786 #define CLIENT_PORT 8229 main () { int sd, rc, i,n; struct sockaddr_in clientAddr, servAddr; char line[MAX_MSG]; /**********************************/ /* build server address structure */ /**********************************/ […]

Read More

Hello Testing !!

Hi, All !! I’m Sumit Kar… I am practically a Tech Geek. Technology, Graphic Designing, Photography, Web Designing and Social Communication are my fields of Interest. I spend my day reading Technology Magazine, and play around with new Apps and Gadgets. I also love to capture images from day to day life and try to […]

Read More