2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
6 #include <proto/exec.h>
7 #include <proto/alib.h>
9 #include <exec/ports.h>
14 struct Message msg
, *msg2
;
17 port
= FindPort("PORTTEST");
20 puts("Port not found");
23 msg
.mn_ReplyPort
= CreatePort(NULL
, 0);
24 if (msg
.mn_ReplyPort
==NULL
)
26 puts("Error creating port");
31 WaitPort(msg
.mn_ReplyPort
);
32 msg2
= GetMsg(msg
.mn_ReplyPort
);
33 DeletePort(msg
.mn_ReplyPort
);
35 puts("Wrong message returned");
37 puts("Message returned");