Lines Matching refs:buflen
134 static int receive(int fd, unsigned char *buf, int buflen, in receive() argument
140 ret = recvfrom(fd, buf, buflen, 0, addr, addrlen); in receive()
146 ret = read(fd, buf, buflen); in receive()
159 static int reply(int fd, unsigned char *buf, int buflen, in reply() argument
165 ret = sendto(fd, buf, buflen, 0, addr, addrlen); in reply()
173 ret = write(fd, buf + sent, buflen - sent); in reply()
178 } while (sent < buflen); in reply()
189 unsigned char *buf, int buflen, int proto, in udp_receive_and_reply() argument
197 ret = receive(fd_recv, buf, buflen, in udp_receive_and_reply()
218 unsigned char *buf, int buflen, int proto) in tcp_receive_and_reply() argument
225 ret = receive(fd_recv, buf, buflen, in tcp_receive_and_reply()