Rev 5499 | Rev 5676 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5499 | Rev 5598 | ||
---|---|---|---|
Line -... | Line 1... | ||
- | 1 | #ifndef INCLUDE_SOCKET_H |
|
- | 2 | #define INCLUDE_SOCKET_H |
|
- | 3 | ||
- | 4 | #ifndef INCLUDE_KOLIBRI_H |
|
- | 5 | #include "../lib/kolibri.h" |
|
- | 6 | #endif |
|
- | 7 | ||
1 | #define SOCK_STREAM 1 |
8 | #define SOCK_STREAM 1 |
2 | #define SOCK_DGRAM 2 |
9 | #define SOCK_DGRAM 2 |
Line 3... | Line 10... | ||
3 | 10 | ||
Line 4... | Line 11... | ||
4 | #define AF_INET4 2 |
11 | #define AF_INET4 2 |
5 | 12 | ||
Line 6... | Line 13... | ||
6 | #define MSG_PEEK 0x02 |
13 | #define MSG_PEEK 0x02 |
Line 7... | Line 14... | ||
7 | #define MSG_DONTWAIT 0x40 |
14 | #define MSG_DONTWAIT 0x40 |
- | 15 | ||
8 | 16 | dword errorcode; |
|
9 | dword errorcode; |
17 | |
10 | 18 | struct sockaddr_in |
|
11 | struct sockaddr_in{ |
19 | { |
12 | word sin_family; |
20 | word sin_family; |
Line 92... | Line 100... | ||
92 | $mov ebx, 7 |
100 | $mov ebx, 7 |
93 | $int 0x40 |
101 | $int 0x40 |
94 | errorcode = EBX; |
102 | errorcode = EBX; |
95 | $pop ebx |
103 | $pop ebx |
96 | } |
104 | } |
- | 105 | ||
- | 106 | #endif |
|
97 | 107 |