Rev 1153 | Rev 1213 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1153 | Rev 1154 | ||
---|---|---|---|
Line 2562... | Line 2562... | ||
2562 | ============ Function 53, subfunction 0 - open UDP-socket. =========== |
2562 | ============ Function 53, subfunction 0 - open UDP-socket. =========== |
2563 | ====================================================================== |
2563 | ====================================================================== |
2564 | Parameters: |
2564 | Parameters: |
2565 | * eax = 53 - function number |
2565 | * eax = 53 - function number |
2566 | * ebx = 0 - subfunction number |
2566 | * ebx = 0 - subfunction number |
2567 | * ecx = local port (only low word is taken into account) |
2567 | * ecx = local port (only low word is taken into account), |
- | 2568 | ecx = 0 - let the system choose a port |
|
2568 | * edx = remote port (only low word is taken into account) |
2569 | * edx = remote port (only low word is taken into account) |
2569 | * esi = remote IP |
2570 | * esi = remote IP |
2570 | Returned value: |
2571 | Returned value: |
2571 | * eax = -1 = 0xFFFFFFFF - error; ebx destroyed |
2572 | * eax = -1 = 0xFFFFFFFF - error; ebx destroyed |
2572 | * eax = socket handle (some number which unambiguously identifies |
2573 | * eax = socket handle (some number which unambiguously identifies |
Line 2635... | Line 2636... | ||
2635 | ============ Function 53, subfunction 5 - open TCP-socket. =========== |
2636 | ============ Function 53, subfunction 5 - open TCP-socket. =========== |
2636 | ====================================================================== |
2637 | ====================================================================== |
2637 | Parameters: |
2638 | Parameters: |
2638 | * eax = 53 - function number |
2639 | * eax = 53 - function number |
2639 | * ebx = 5 - subfunction number |
2640 | * ebx = 5 - subfunction number |
2640 | * ecx = local port (only low word is taken into account) |
2641 | * ecx = local port (only low word is taken into account), |
- | 2642 | ecx = 0 - let the system choose a port |
|
2641 | * edx = remote port (only low word is taken into account) |
2643 | * edx = remote port (only low word is taken into account) |
2642 | * esi = remote IP |
2644 | * esi = remote IP |
2643 | * edi = open mode: SOCKET_PASSIVE=0 or SOCKET_ACTIVE=1 |
2645 | * edi = open mode: SOCKET_PASSIVE=0 or SOCKET_ACTIVE=1 |
2644 | Returned value: |
2646 | Returned value: |
2645 | * eax = -1 = 0xFFFFFFFF - error; ebx destroys |
2647 | * eax = -1 = 0xFFFFFFFF - error; ebx destroys |