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