Rev 3555 | Rev 3725 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3555 | Rev 3589 | ||
---|---|---|---|
Line 2392... | Line 2392... | ||
2392 | * eax = -1 - error (there is too many threads) |
2392 | * eax = -1 - error (there is too many threads) |
2393 | * otherwise eax = TID - thread identifier |
2393 | * otherwise eax = TID - thread identifier |
2394 | 2394 | ||
Line 2395... | Line 2395... | ||
2395 | 2395 | ||
- | 2396 | ====================================================================== |
|
- | 2397 | =========================== Function 52 ============================== |
|
- | 2398 | ====================================================================== |
|
- | 2399 | ||
- | 2400 | WARNING: This function is obsolete and is only present in the |
|
- | 2401 | documentation as a guide to understand/port the older network |
|
- | 2402 | applications. For new programs, use function 74 |
|
- | 2403 | ||
2396 | ====================================================================== |
2404 | ====================================================================== |
2397 | === Function 52, subfunction 0 - get network driver configuration. === |
2405 | === Function 52, subfunction 0 - get network driver configuration. === |
- | 2406 | ====================================================================== |
|
2398 | ====================================================================== |
2407 | |
2399 | Parameters: |
2408 | Parameters: |
2400 | * eax = 52 - function number |
2409 | * eax = 52 - function number |
2401 | * ebx = 0 - subfunction number |
2410 | * ebx = 0 - subfunction number |
2402 | Returned value: |
2411 | Returned value: |
Line 2556... | Line 2565... | ||
2556 | * for ecx=4: ax = last 2 bytes of MAC address, |
2565 | * for ecx=4: ax = last 2 bytes of MAC address, |
2557 | high half of eax is destroyed |
2566 | high half of eax is destroyed |
2558 | * for other ecx: eax = -1 indicates an error |
2567 | * for other ecx: eax = -1 indicates an error |
Line 2559... | Line 2568... | ||
2559 | 2568 | ||
- | 2569 | ====================================================================== |
|
- | 2570 | =========================== Function 53 ============================== |
|
- | 2571 | ====================================================================== |
|
- | 2572 | ||
- | 2573 | WARNING: This function is obsolete and is only present in the |
|
- | 2574 | documentation as a guide to understand/port the older network |
|
- | 2575 | applications. For new programs, use function 75. |
|
- | 2576 | ||
2560 | ====================================================================== |
2577 | ====================================================================== |
2561 | ============ Function 53, subfunction 0 - open UDP-socket. =========== |
2578 | ============ Function 53, subfunction 0 - open UDP-socket. =========== |
2562 | ====================================================================== |
2579 | ====================================================================== |
2563 | Parameters: |
2580 | Parameters: |
2564 | * eax = 53 - function number |
2581 | * eax = 53 - function number |
Line 4579... | Line 4596... | ||
4579 | 4596 | ||
4580 | Returned value: |
4597 | Returned value: |
Line 4581... | Line 4598... | ||
4581 | * function does not return value |
4598 | * function does not return value |
- | 4599 | ||
- | 4600 | ====================================================================== |
|
- | 4601 | = Function 74, Subfunction -1, Get number of active network devices. = |
|
- | 4602 | ====================================================================== |
|
- | 4603 | Parameters: |
|
- | 4604 | * eax = 74 - function number |
|
- | 4605 | * bl = -1 - subfunction number |
|
- | 4606 | Returned value: |
|
- | 4607 | * eax = number of active network devices |
|
- | 4608 | ||
- | 4609 | ====================================================================== |
|
- | 4610 | ======== Function 74, Subfunction 0, Get network device type. ======== |
|
- | 4611 | ====================================================================== |
|
- | 4612 | Parameters: |
|
- | 4613 | * eax = 74 - function number |
|
- | 4614 | * bl = 0 - subfunction number |
|
- | 4615 | * bh = device number |
|
- | 4616 | Returned value: |
|
- | 4617 | * eax = device type |
|
- | 4618 | ||
- | 4619 | ====================================================================== |
|
- | 4620 | ======== Function 74, Subfunction 1, Get network device name. ======== |
|
- | 4621 | ====================================================================== |
|
- | 4622 | Parameters: |
|
- | 4623 | * eax = 74 - function number |
|
- | 4624 | * bl = 1 - subfunction number |
|
- | 4625 | * bh = device number |
|
- | 4626 | * ecx = pointer to 64 byte buffer |
|
- | 4627 | Returned value: |
|
- | 4628 | * eax = -1 on error |
|
- | 4629 | * The network device name is written into the buffer, on success |
|
- | 4630 | ||
- | 4631 | ====================================================================== |
|
- | 4632 | ========= Function 74, Subfunction 2, Reset network device. ========== |
|
- | 4633 | ====================================================================== |
|
- | 4634 | Parameters: |
|
- | 4635 | * eax = 74 - function number |
|
- | 4636 | * bl = 2 - subfunction number |
|
- | 4637 | * bh = device number |
|
- | 4638 | Returned value: |
|
- | 4639 | * eax = -1 on error |
|
- | 4640 | ||
- | 4641 | ====================================================================== |
|
- | 4642 | ========== Function 74, Subfunction 3, Stop network device. ========== |
|
- | 4643 | ====================================================================== |
|
- | 4644 | Parameters: |
|
- | 4645 | * eax = 74 - function number |
|
- | 4646 | * bl = 3 - subfunction number |
|
- | 4647 | * bh = device number |
|
- | 4648 | Returned value: |
|
- | 4649 | * eax = -1 on error |
|
- | 4650 | ||
- | 4651 | ====================================================================== |
|
- | 4652 | ============== Function 75, Subfunction 0, Open socket. ============== |
|
- | 4653 | ====================================================================== |
|
- | 4654 | Parameters: |
|
- | 4655 | * eax = 75 - function number |
|
- | 4656 | * bl = 0 - subfunction number |
|
- | 4657 | * ecx = domain |
|
- | 4658 | * edx = type |
|
- | 4659 | * esi = protocol |
|
- | 4660 | Returned value: |
|
- | 4661 | * eax = socket number, -1 on error |
|
- | 4662 | ||
- | 4663 | ====================================================================== |
|
- | 4664 | ============= Function 75, Subfunction 1, Close socket. ============== |
|
- | 4665 | ====================================================================== |
|
- | 4666 | Parameters: |
|
- | 4667 | * eax = 75 - function number |
|
- | 4668 | * bl = 1 - subfunction number |
|
- | 4669 | * ecx = socket number |
|
- | 4670 | Returned value: |
|
- | 4671 | * eax = -1 on error |
|
- | 4672 | ||
- | 4673 | ====================================================================== |
|
- | 4674 | ================== Function 75, Subfunction 2, Bind. ================= |
|
- | 4675 | ====================================================================== |
|
- | 4676 | Parameters: |
|
- | 4677 | * eax = 75 - function number |
|
- | 4678 | * bl = 2 - subfunction number |
|
- | 4679 | * ecx = socket number |
|
- | 4680 | * edx = pointer to sockaddr structure |
|
- | 4681 | * esi = length of sockaddr structure |
|
- | 4682 | Returned value: |
|
- | 4683 | * eax = -1 on error |
|
- | 4684 | ||
- | 4685 | ====================================================================== |
|
- | 4686 | ================= Function 75, Subfunction 3, Listen. ================ |
|
- | 4687 | ====================================================================== |
|
- | 4688 | Parameters: |
|
- | 4689 | * eax = 75 - function number |
|
- | 4690 | * bl = 3 - subfunction number |
|
- | 4691 | * ecx = socket number |
|
- | 4692 | * edx = backlog |
|
- | 4693 | Returned value: |
|
- | 4694 | * eax = -1 on error |
|
- | 4695 | ||
- | 4696 | ====================================================================== |
|
- | 4697 | ================ Function 75, Subfunction 4, Connect. ================ |
|
- | 4698 | ====================================================================== |
|
- | 4699 | Parameters: |
|
- | 4700 | * eax = 75 - function number |
|
- | 4701 | * bl = 4 - subfunction number |
|
- | 4702 | * ecx = socket number |
|
- | 4703 | * edx = pointer to sockaddr structure |
|
- | 4704 | * esi = length of sockaddr structure |
|
- | 4705 | Returned value: |
|
- | 4706 | * eax = -1 on error |
|
- | 4707 | ||
- | 4708 | ====================================================================== |
|
- | 4709 | ================= Function 75, Subfunction 5, Accept. ================ |
|
- | 4710 | ====================================================================== |
|
- | 4711 | Parameters: |
|
- | 4712 | * eax = 75 - function number |
|
- | 4713 | * bl = 5 - subfunction number |
|
- | 4714 | * ecx = socket number |
|
- | 4715 | * edx = pointer to sockaddr structure |
|
- | 4716 | * esi = length of sockaddr structure |
|
- | 4717 | Returned value: |
|
- | 4718 | * eax = -1 on error |
|
- | 4719 | ||
- | 4720 | ====================================================================== |
|
- | 4721 | ================== Function 75, Subfunction 6, Send. ================= |
|
- | 4722 | ====================================================================== |
|
- | 4723 | Parameters: |
|
- | 4724 | * eax = 75 - function number |
|
- | 4725 | * bl = 6 - subfunction number |
|
- | 4726 | * ecx = socket number |
|
- | 4727 | * edx = pointer to buffer |
|
- | 4728 | * esi = length of buffer |
|
- | 4729 | Returned value: |
|
- | 4730 | * eax = number of bytes copied, -1 on error |
|
- | 4731 | ||
- | 4732 | ====================================================================== |
|
- | 4733 | ================ Function 75, Subfunction 7, Receive. ================ |
|
- | 4734 | ====================================================================== |
|
- | 4735 | Parameters: |
|
- | 4736 | * eax = 75 - function number |
|
- | 4737 | * bl = 7 - subfunction number |
|
- | 4738 | * ecx = socket number |
|
- | 4739 | * edx = pointer to buffer |
|
- | 4740 | * esi = length of buffer |
|
- | 4741 | * edi = flags |
|
- | 4742 | Returned value: |
|
- | 4743 | * eax = number of bytes copied, -1 on error |
|
- | 4744 | ||
- | 4745 | ====================================================================== |
|
- | 4746 | =========== Function 75, Subfunction 8, Set socket options. ========== |
|
- | 4747 | ====================================================================== |
|
- | 4748 | Parameters: |
|
- | 4749 | * eax = 75 - function number |
|
- | 4750 | * bl = 8 - subfunction number |
|
- | 4751 | * ecx = socket number |
|
- | 4752 | * edx = pointer to optstruct |
|
- | 4753 | Returned value: |
|
- | 4754 | * eax = -1 on error |
|
- | 4755 | Remarks: |
|
- | 4756 | ||
- | 4757 | Optstruct: dd level |
|
- | 4758 | dd optionname |
|
- | 4759 | dd optlength |
|
- | 4760 | db options... |
|
- | 4761 | ||
- | 4762 | ====================================================================== |
|
- | 4763 | =========== Function 75, Subfunction 9, Get socket options. ========== |
|
- | 4764 | ====================================================================== |
|
- | 4765 | Parameters: |
|
- | 4766 | * eax = 75 - function number |
|
- | 4767 | * bl = 9 - subfunction number |
|
- | 4768 | * ecx = socket number |
|
- | 4769 | * edx = pointer to optstruct |
|
- | 4770 | Returned value: |
|
- | 4771 | * eax = -1 on error |
|
- | 4772 | Remarks: |
|
- | 4773 | ||
- | 4774 | Optstruct: dd level |
|
- | 4775 | dd optionname |
|
- | 4776 | dd optlength |
|
- | 4777 | db options... |
|
- | 4778 | ||
- | 4779 | ====================================================================== |
|
- | 4780 | ============ Function 75, Subfunction 10, Get socketpair. =========== |
|
- | 4781 | ====================================================================== |
|
- | 4782 | Parameters: |
|
- | 4783 | * eax = 75 - function number |
|
- | 4784 | * bl = 10 - subfunction number |
|
- | 4785 | Returned value: |
|
- | 4786 | * eax = socketnum1, -1 on error |
|
- | 4787 | * ebx = socketnum2 |
|
- | 4788 | Remarks: |
|
- | 4789 | ||
- | 4790 | Optstruct: dd level |
|
- | 4791 | dd optionname |
|
- | 4792 | dd optlength |
|
- | 4793 | db options... |
|
4582 | 4794 | ||
4583 | ====================================================================== |
4795 | ====================================================================== |
4584 | =============== Function -1 - terminate thread/process =============== |
4796 | =============== Function -1 - terminate thread/process =============== |
4585 | ====================================================================== |
4797 | ====================================================================== |
4586 | Parameters: |
4798 | Parameters: |