Вниз
Скачать: CL | DM;

Мастера, подскажите   Найти похожие ветки 

← →
boolean   (2002-11-30 14:38) [0]

Как найти свободный порт из диапазона? Допустим с 1000 по 10000


← →
Digitman ©   (2002-11-30 14:46) [1]

см. bind()

If an application does not care what local address is assigned to it, it can specify the manifest constant value ADDR_ANY for the sa_data field of the name parameter. This allows the underlying service provider to use any appropriate network address, potentially simplifying application programming in the presence of multihomed hosts (that is, hosts that have more than one network interface and address). For TCP/IP, if the port is specified as zero, the service provider will assign a unique port to the application with a value between 1024 and 5000. The application can use getsockname after bind to learn the address and the port that has been assigned to it, but note that if the Internet address is equal to INADDR_ANY, getsockname will not necessarily be able to supply the address until the socket is connected, since several addresses can be valid if the host is multihomed.



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.44 MB
Время: 0.01 c
14-87131
chosen
2003-01-10 06:38
2003.01.27
работа для программистов


6-87005
snoup
2002-12-01 00:21
2003.01.27
Пожалуйста скажите, ко-нибудь когда-нибудь организовывал WHoIS на


1-86872
don-do
2003-01-20 08:37
2003.01.27
Help Как работать с Winhelp-ом через имена


14-87057
white@donses.ru
2003-01-07 14:46
2003.01.27
Помогите запустить программу с таблицей PARADOX на другом компе


9-86605
Uki
2002-07-22 15:02
2003.01.27
Создание спрайта




   Наверх