From bbd90aaebc2c038c9bf4d75ef9595335f53eaabf Mon Sep 17 00:00:00 2001 From: hidnplayr Date: Mon, 6 Oct 2014 08:57:52 +0000 Subject: [PATCH] Fixed network documentation. git-svn-id: svn://kolibrios.org@5143 a494cfbc-eb01-0410-851d-a64ba20cac60 --- data/eng/docs/STACK.TXT | 29 ++++++++++++++++++++--------- kernel/trunk/docs/sysfuncs.txt | 6 ------ 2 files changed, 20 insertions(+), 15 deletions(-) diff --git a/data/eng/docs/STACK.TXT b/data/eng/docs/STACK.TXT index 645f6ef488..8a95e53f45 100644 --- a/data/eng/docs/STACK.TXT +++ b/data/eng/docs/STACK.TXT @@ -115,28 +115,39 @@ bl = 8 (set socket options) in: ecx = socket number - edx = level - esi = optionname - edi = ptr to buffer + edx = ptr to optstruct + + Optstruct: dd level + dd optionname + dd optlength + db options... The buffer's first dword is the length of the buffer, minus the first dword offcourse out: eax = -1 on error -bl = 9 (get socket options +bl = 9 (get socket options) in: ecx = socket number - edx = level - esi = optionname - edi = ptr to buffer - -The buffer's first dword is the length of the buffer, minus the first dword offcourse + edx = ptr to optstruct + Optstruct: dd level + dd optionname + dd optlength + db options... out: eax = -1 on error, socket option otherwise +bl = 10 (get IPC socketpair) + + in: + / + out: + eax = -1 on error, socketnum1 otherwise + ebx = socketnum2 + TIP when you import 'network.inc' and 'macros.inc' into your source code, you can use the following syntax to work with sockets: diff --git a/kernel/trunk/docs/sysfuncs.txt b/kernel/trunk/docs/sysfuncs.txt index 6019f08e3e..0d0f71b5a4 100644 --- a/kernel/trunk/docs/sysfuncs.txt +++ b/kernel/trunk/docs/sysfuncs.txt @@ -4032,12 +4032,6 @@ Parameters: Returned value: * eax = socketnum1, -1 on error * ebx = socketnum2, errorcode on error -Remarks: - - Optstruct: dd level - dd optionname - dd optlength - db options... ====================================================================== =============== Function -1 - terminate thread/process ===============