Lines Matching defs:packet
218 * must be accomplished by constructing a message packet and sending it
509 * returns Res1 of the reply packet
524 LONG action, /* packet type (desired action) */
531 struct StandardPacket *packet;
537 packet = (struct StandardPacket *)AllocMem(
539 if( !packet )
545 packet->sp_Msg.mn_Node.ln_Name = (char *)&(packet->sp_Pkt);
546 packet->sp_Pkt.dp_Link = &(packet->sp_Msg);
547 packet->sp_Pkt.dp_Port = replyport;
548 packet->sp_Pkt.dp_Type = action;
550 /* copy the args into the packet */
551 pargs = &(packet->sp_Pkt.dp_Arg1); /* address of 1st argument */
555 PutMsg(pid,(struct Message *)packet); /* send packet */
560 res1 = packet->sp_Pkt.dp_Res1;
562 FreeMem((char *)packet,(long)sizeof(*packet));