Searched refs:newsock (Results 1 – 1 of 1) sorted by relevance
24 int newsock; in main() local44 newsock = accept(sock, (struct sockaddr*)&sin, &salen); in main()45 if (newsock < 0) in main()47 printf("Accepted socket %d\n", newsock); in main()49 rv = write(newsock, HELLO_MSG, strlen(HELLO_MSG)); in main()54 close(newsock); in main()