sock_listen.asm
bitfixer_bitfixer/dg/z88dk/libsrc/net/sock_listen.asm
;
;	This file is automatically generated
;
;	Do not edit!!!
;
;	djm 12/2/2000
;
;	ZSock Lib function: sock_listen


	PUBLIC	sock_listen

	EXTERN	no_zsock

	INCLUDE	"packages.def"
	INCLUDE	"zsock.def"

.sock_listen
	ld	a,r_sock_listen
	call_pkg(tcp_all)
	ret	nc
; We failed..are we installed?
	cp	rc_pnf
	scf		;signal error
	ret	nz	;Internal error
	call_pkg(tcp_ayt)
	jr	nc,sock_listen
	jp	no_zsock
