Lines Matching refs:reply

120  * retransmission due to a large reply, 'xid' should be the same as for
202 char *reply = NULL;
219 /* make the socket, msghdr and reply buf */
230 if (!reply && !(reply = malloc(mtu))) {
263 if (recvfrom(sockfd, reply, mtu, 0, NULL, NULL) < 0) {
264 /* if reply overflows, hand off to TCP */
266 free(reply); reply = NULL;
275 slp_proto_err errcode = slp_get_errcode(reply);
291 "DA %s returned error code %d; dropping reply",
293 free(reply); reply = NULL;
308 if (reply) free(reply);
312 if (reply) {
313 if (slp_get_overflow(reply))
317 (void) slp_enqueue(hp->q, reply);
459 char *reply, header[SLP_DEFAULT_SENDMTU];
487 reply = NULL;
527 /* send the message and read the reply */
537 if ((slp_tcp_read(tcp_sockfd, &reply)) == SLP_OK) {
549 if (reply) {
550 free(reply);
554 (void) slp_enqueue(hp->q, reply);
572 * buffer large enough to hold the reply.
574 SLPError slp_tcp_read(int sockfd, char **reply) {
580 /* find out how long the reply is */
598 /* allocate space for the reply, and copy in what we've already read */
600 if (!(*reply = malloc(len))) {
604 (void) memcpy(*reply, lenbuf, 5);
608 p = *reply + 5;
614 free(*reply);
1012 char *reply = NULL;
1040 /* alloc reply buffer */
1041 if (!reply && !(reply = malloc(mtu))) {
1045 if (recvfrom(pfd[i].fd, reply, mtu, 0,
1049 /* if reply overflows, hand off to TCP */
1051 free(reply); reply = NULL;
1064 if (slp_get_overflow(reply)) {
1073 (void) slp_enqueue(hp->q, reply);
1076 reply = NULL;
1097 if (reply) {
1098 free(reply);
1145 * A wrapper around poll which waits until a reply comes in. This will
1210 * 0 is this is a duplicate reply