Quote:
Originally Posted by Toni Wilen
IMHO it is good idea to have "ignore" option too because for example UAE bsdsocket won't generate any interrupts if there is no open connections. Real hardware bsdsocket (NIC device driver) probably won't benerate any interrupts either if network cable is not connected. At least some drivers.
Preferably via command line.
|
Okay, that means that my assumtion with this code doesn't guarantee that a bsdsocket.library found in exec's library list and which is opened does not always generate interrupts at last?
Code:
CALLEXEC Forbid ;Multitasking off
lea LibList(a6),a0 ;Pointer to Library-List
lea bsdsocket_name(pc),a1 ;Name of Bsdsocket-Library
CALLEXEC FindName
tst.l d0
beq.s no_tcp_stack_found ;If Null -> branch
move.l d0,a0
tst.w LIB_OPENCNT(a0)
beq.s no_tcp_stack_found ;If bsdsocket.library not open -> branch
tcp_stack_found
CALLEXEC Permit ;Multitasking on
A third button "Ignore" in the requester would be no problem to include. A good idea.