home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fred Fish Collection 1.5
/
ffcollection-1-5-1992-11.iso
/
ff_disks
/
200-299
/
ff294.lzh
/
DNet
/
amiga
/
lib
/
dunlisten.c
< prev
next >
Wrap
C/C++ Source or Header
|
1989-12-11
|
390b
|
22 lines
/*
* DUnListen.C
*/
#include "lib.h"
void
DUnListen(lisport)
PORT *lisport;
{
if (lisport) {
char *ptr = lisport->mp_Node.ln_Name;
Forbid(); /* task-atomic operation */
while (DNAAccept(lisport)); /* remove all pending requests */
DeletePort(lisport); /* gone! */
Permit();
FreeMem(ptr, NAMELEN);
}
}