Rev 3545 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3545 | Rev 3704 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | thread_start: |
1 | thread_start: |
Line 2... | Line 2... | ||
2 | 2 | ||
Line 3... | Line 3... | ||
3 | DEBUGF 1, 'I am the thread!\n' |
3 | DEBUGF 1, 'I am the thread!\n' |
Line 4... | Line 4... | ||
4 | 4 | ||
5 | mcall 40, 1 shl 7 |
5 | mcall 40, 0 |
6 | 6 | ||
7 | ; resolve name |
7 | ; resolve name |
Line 53... | Line 53... | ||
53 | no_security: |
53 | no_security: |
54 | mcall send, [socketnum], shared, 1, 0 |
54 | mcall send, [socketnum], shared, 1, 0 |
55 | DEBUGF 1, 'Sending handshake: shared session?\n' |
55 | DEBUGF 1, 'Sending handshake: shared session?\n' |
Line 56... | Line -... | ||
56 | - | ||
57 | mcall 23, 100*TIMEOUT |
- | |
58 | 56 | ||
Line 59... | Line 57... | ||
59 | call wait_for_data ; now the server should send init message |
57 | call wait_for_data ; now the server should send init message |
60 | 58 | ||
61 | DEBUGF 1, 'Serverinit: bpp: %u depth: %u bigendian: %u truecolor: %u\n', \ |
59 | DEBUGF 1, 'Serverinit: bpp: %u depth: %u bigendian: %u truecolor: %u\n', \ |
Line 83... | Line 81... | ||
83 | mov [fbur.inc], 2 |
81 | mov [fbur.inc], 2 |
84 | mcall send, [socketnum], fbur, 10, 0 |
82 | mcall send, [socketnum], fbur, 10, 0 |
85 | 83 | ||
Line 86... | Line 84... | ||
86 | thread_loop: |
84 | thread_loop: |
87 | mcall 23, 100 |
- | |
88 | - | ||
89 | call read_data ; Read the data into the buffer |
85 | call read_data ; Read the data into the buffer |
Line 90... | Line 86... | ||
90 | 86 | ||
91 | ; cmp eax, 2 |
87 | ; cmp eax, 2 |
Line 204... | Line 200... | ||
204 | jmp thread_loop |
200 | jmp thread_loop |
Line 205... | Line 201... | ||
205 | 201 | ||
206 | - | ||
207 | read_data: |
202 | |
208 | 203 | read_data: |
|
209 | mov [datapointer], receive_buffer |
- | |
210 | .loop: |
204 | mov [datapointer], receive_buffer |
211 | mcall 23, 100*TIMEOUT |
205 | .loop: |
212 | mcall recv, [socketnum], [datapointer], 4096, 0 |
206 | mcall recv, [socketnum], [datapointer], 4096, 0 |
Line 213... | Line 207... | ||
213 | cmp eax, -1 |
207 | cmp eax, -1 |
Line 225... | Line 219... | ||
225 | 219 | ||
Line 226... | Line 220... | ||
226 | 220 | ||
227 | - | ||
228 | wait_for_data: |
- | |
229 | 221 | ||
230 | mcall 23, 500 |
222 | wait_for_data: |
231 | mcall recv, [socketnum], receive_buffer, 4096, 0 |
223 | mcall recv, [socketnum], receive_buffer, 4096, 0 |
232 | cmp eax, -1 |
224 | cmp eax, -1 |
233 | je wait_for_data |
225 | je wait_for_data |