Lines Matching refs:sock
7 sock = socket(AF_INET, SOCK_STREAM, 0);
8 connect(sock, &remote, sizeof(remote));
9 write(sock, buffer, 1000000);
21 IOW: if we just close(sock) now, kernel can reset the TCP connection
41 setsockopt(sock, SOL_SOCKET, SO_LINGER, &linger, sizeof(linger));
42 close(sock);
47 shutdown(sock, SHUT_WR);
48 close(sock);
70 setsockopt(sock, SOL_SOCKET, SO_LINGER, &linger, sizeof(linger));
71 shutdown(sock, SHUT_WR);
74 close(sock);