/* This file is part of the Project Athena Zephyr Notification System. * It contains source for ZReceivePacket function. * Created by: Robert French * Copyright (c) 1987,1988 by the Massachusetts Institute of Technology. * For copying and distribution information, see the file Code_t ZReceivePacket(buffer, ret_len, from) struct sockaddr_in *from; if ((retval = Z_WaitForComplete()) != ZERR_NONE) nextq = Z_GetFirstComplete(); *ret_len = nextq->packet_len; if (*ret_len > Z_MAXPKTLEN) (void) memcpy(buffer, nextq->packet, *ret_len);