Int 61 Fn 13 - Pc/tcp Kernel V2.05 - "net_connect" - Open A Network Conn [N]

AH = 13h
BX = network descriptor (FFFFh for automatic net_getdesc)
DX = protocol (see #3132)
DS:SI -> buffer for "addr" structure (see #3133)

Return: CF clear if successful
AX = network descriptor used or allocated
CF set on error
AX = error code (see #2990 at INT 61"FTP Software")

Notes: resets the connection with AH=19h in various cases
will wait for protocol on stream connections unless non-blocking was
set with AH=20h

See Also: INT 61"FTP Software",INT 61/AH=00h"PC/TCP",INT 61/AH=18h,INT 61/AH=23h

See Also: INT 63/AH=14h"BW-TCP"

(Table 3132)
Values for PC/TCP protocol:
0001h raw net (undocumented)
0002h raw IP
0003h datagram (UDP)
0004h stream (TCP)
0005h raw ICMP

Format of structure "addr":
Offset Size Description (Table 3133)
00h DWORD Internet address (network order)
04h WORD remote socket number (network order)
06h WORD local socket number (network order) 0000h means "you choose"
08h BYTE protocol (see #3132)