A2osX/_Docs/LIBTCPIP.md

96 lines
1.1 KiB
Markdown
Raw Normal View History

*** Auto generated by docgen.cmd ***
#SKT.New
2017-02-13 07:26:18 +00:00
+ Create a new socket
##In :
+ PUSHW = PTR to S.SOCKET template
##Out :
+ YA = PTR to new S.SOCKET
+ X = hSocket
2017-02-13 07:26:18 +00:00
#SKT.AcceptA
+ Check for an incoming connection
##In :
+ A = hListeningSocket
##Out :
+ A = hSocket
#SKT.Send (DGRAM,STREAM,RAW)
+ Send block of data
##In :
+ PUSHB = hSocket
+ PUSHW = pBuf
+ PUSHW = len
##Out :
+ A = hFrame
#SKT.RcvdA (DGRAM,RAW)
##In :
+ A = hSocket
##Out :
+ A = hFrame
#SKT.GetCA (STREAM)
+ Read a Char From Stream in A
##In :
+ A = hSocket
##Out :
+ A = char
#SKT.GetS (STREAM)
+ Read a CR terminated Line in pBuf
##In :
+ PUSHB = hSocket
+ PUSHW = pBuf
+ PUSHW = len
##Out :
+ Y,A = bytes read
#SKT.Rcvd (STREAM)
+ Read data in pBuf
##In :
+ PUSHB = hSocket
+ PUSHW = pBuf
+ PUSHW = len
##Out :
+ Y,A = bytes transfered
#SKT.CloseA
+ Close socket
##In :
+ A = hSocket
##Out :
#SKT.GetA
+ Get Ptr to socket
##In :
+ A = hSocket
##Out :
+ Y,A = pS.SOCKET
#SKT.GetTable
+ Get socket table
##In :
##Out :
+ Y,A = pS.SOCKET