forked from KolibriOS/kolibrios
Experimental support for MSG_PEEK and MSG_DONTWAIT in SOCKET_receive_stream.
git-svn-id: svn://kolibrios.org@3459 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -83,6 +83,10 @@ SO_BINDTODEVICE = 1 shl 9
|
||||
SO_BLOCK = 1 shl 10 ; TO BE REMOVED
|
||||
SO_NONBLOCK = 1 shl 31
|
||||
|
||||
; Socket flags for user calls
|
||||
MSG_PEEK = 0x02
|
||||
MSG_DONTWAIT = 0x40
|
||||
|
||||
; Socket level
|
||||
SOL_SOCKET = 0
|
||||
|
||||
@@ -264,6 +268,12 @@ stack_handler:
|
||||
cmp [NET_RUNNING], 0
|
||||
je .exit
|
||||
|
||||
cmp [UDP_PACKETS_TX], 50
|
||||
jb @f
|
||||
DEBUGF 1, "\n\nCRAP!\n\n"
|
||||
jmp $
|
||||
@@:
|
||||
|
||||
; Test for 10ms tick
|
||||
mov eax, [timer_ticks]
|
||||
cmp eax, [net_10ms]
|
||||
|
Reference in New Issue
Block a user