Lines Matching defs:sockfd
63 void str_cli(FILE *fp, int sockfd)
73 if (writen(sockfd, sendline, n) != n)
80 n = readline(sockfd, recvline, MAXLINE);
100 int sockfd;
121 if ((sockfd = socket(AF_INET, SOCK_STREAM, 0)) < 0) {
128 sockfd);
130 if (connect(sockfd, (struct sockaddr *)&serv_addr, sizeof(serv_addr)) <
142 str_cli(input, sockfd); /* call the routines that do the work */
146 str_cli(stdin, sockfd); /* call the routines that do the work */
149 close(sockfd);