0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Re:
[CODE]/* A simple server in the internet domain using TCP The port number is passed as an argument */ #include <stdio.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include<arpa/inet.h> #include<netdb.h> #include<string.h> int main(int argc, char *argv[]) { struct addrinfo hints,*serv,*p; int sockfd,newfd,status; struct sockaddr_storage their_addr; socklen_t addr_size; char *msg; int len; … |