Rev 3562 | Rev 3704 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3562 | Rev 3618 | ||
---|---|---|---|
Line -... | Line 1... | ||
- | 1 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
|
- | 2 | ;; ;; |
|
- | 3 | ;; Copyright (C) KolibriOS team 2010-2013. All rights reserved. ;; |
|
- | 4 | ;; Distributed under terms of the GNU General Public License ;; |
|
- | 5 | ;; ;; |
|
- | 6 | ;; tcpserv.asm - TCP demo program for KolibriOS ;; |
|
- | 7 | ;; ;; |
|
- | 8 | ;; Written by hidnplayr@kolibrios.org ;; |
|
- | 9 | ;; ;; |
|
- | 10 | ;; GNU GENERAL PUBLIC LICENSE ;; |
|
- | 11 | ;; Version 2, June 1991 ;; |
|
- | 12 | ;; ;; |
|
- | 13 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
|
- | 14 | ||
1 | format binary as "" |
15 | format binary as "" |
Line -... | Line 16... | ||
- | 16 | ||
- | 17 | BUFFERSIZE = 1500 |
|
2 | 18 | ||
3 | use32 |
19 | use32 |
4 | ; standard header |
20 | ; standard header |
5 | db 'MENUET01' ; signature |
21 | db 'MENUET01' ; signature |
6 | dd 1 ; header version |
22 | dd 1 ; header version |
Line 10... | Line 26... | ||
10 | dd mem ; stack pointer |
26 | dd mem ; stack pointer |
11 | dd 0 ; parameters |
27 | dd 0 ; parameters |
12 | dd 0 ; path |
28 | dd 0 ; path |
Line 13... | Line -... | ||
13 | - | ||
14 | - | ||
15 | BUFFERSIZE equ 1500 |
29 | |
16 | ; useful includes |
30 | |
17 | include '../macros.inc' |
31 | include '../../macros.inc' |
18 | purge mov,add,sub |
32 | purge mov,add,sub |
Line 19... | Line 33... | ||
19 | include '../proc32.inc' |
33 | include '../../proc32.inc' |
Line 20... | Line 34... | ||
20 | include '../dll.inc' |
34 | include '../../dll.inc' |
21 | 35 | ||
22 | include '../network.inc' |
36 | include '../../network.inc' |
23 | 37 |