Lines Matching refs:buffer_len
407 ssize_t *buffer_len) in read_data_block() argument
414 *buffer_len = (ssize_t)strtol((char *)buffer, NULL, 16); in read_data_block()
415 if(*buffer_len > maxlen) { in read_data_block()
417 "(%zd bytes)", maxlen, *buffer_len); in read_data_block()
420 logmsg("> %zd bytes data, server => client", *buffer_len); in read_data_block()
422 if(!read_stdin(buffer, *buffer_len)) in read_data_block()
425 lograw(buffer, *buffer_len); in read_data_block()
915 ssize_t buffer_len; in disc_handshake() local
933 if(!read_data_block(buffer, sizeof(buffer), &buffer_len)) in disc_handshake()
1106 ssize_t buffer_len; in juggle() local
1138 buffer_len = (ssize_t)strlen((char *)buffer); in juggle()
1139 msnprintf(data, sizeof(data), "PORT\n%04zx\n", buffer_len); in juggle()
1142 if(!write_stdout(buffer, buffer_len)) in juggle()
1152 if(!read_data_block(buffer, sizeof(buffer), &buffer_len)) in juggle()
1162 ssize_t bytes_written = swrite(sockfd, buffer, buffer_len); in juggle()
1163 if(bytes_written != buffer_len) { in juggle()
1165 buffer_len, bytes_written); in juggle()