Lines Matching full:sock
53 void common_session_init(int sock, char* remotehost) {
59 ses.sock = sock;
60 ses.maxfd = sock;
134 if (ses.sock != -1) {
135 FD_SET(ses.sock, &readfd);
137 FD_SET(ses.sock, &writefd);
180 if (ses.sock != -1) {
181 if (FD_ISSET(ses.sock, &writefd) && !isempty(&ses.writequeue)) {
185 if (FD_ISSET(ses.sock, &readfd)) {
241 if (atomicio(write, ses.sock, LOCAL_IDENT "\r\n",
248 len = ident_readln(ses.sock, linebuf, sizeof(linebuf));