From b280840eb3791cd8a506168c90f20bdf9e72cc22 Mon Sep 17 00:00:00 2001 From: esevece Date: Sun, 31 Mar 2013 23:49:23 +0000 Subject: [PATCH] Added functions for socket manipulation git-svn-id: svn://kolibrios.org@3436 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/cmm/lib/socket.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/programs/cmm/lib/socket.h b/programs/cmm/lib/socket.h index 0b1df403c1..476ef4b99e 100644 --- a/programs/cmm/lib/socket.h +++ b/programs/cmm/lib/socket.h @@ -7,6 +7,13 @@ inline fastcall dword OpenSocket( ECX, EDX, ESI, EDI) $int 0x40 } +inline fastcall dword CloseSocket( ECX ) +{ + $mov eax, 53 + $mov ebx, 8 + $int 0x40 +} + inline fastcall int StatusSocket( ECX) { $mov eax,53 @@ -22,6 +29,13 @@ inline fastcall dword ReadSocket( ECX) return BL; } +inline fastcall dword ReadNetworkData( ECX, EDX, ESI) +{ + $mov eax, 53 + $mov ebx, 11 + $int 0x40 +} + inline fastcall dword PollSocket( ECX) { $mov eax,53