Home | History | Annotate | Download | only in clisrv

Lines Matching refs:sockfd

62 void str_cli(fp, sockfd)
64 register int sockfd;
74 if (writen(sockfd, sendline, n) != n)
81 n = readline(sockfd, recvline, MAXLINE);
101 int sockfd;
122 if ((sockfd = socket(AF_INET, SOCK_STREAM, 0)) < 0) {
129 sockfd);
131 if (connect(sockfd, (struct sockaddr *)&serv_addr, sizeof(serv_addr)) <
143 str_cli(input, sockfd); /* call the routines that do the work */
147 str_cli(stdin, sockfd); /* call the routines that do the work */
150 close(sockfd);