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

CreateMailslot   Найти похожие ветки 

← →
LVitaliy ©   (2003-09-30 08:40) [0]

Можно ли использовать CreateMailslot не в локальной сети заная при этом IP адрес если можно то какой адрес использовать


← →
Digitman ©   (2003-09-30 09:17) [1]

CreateMailslot() можно использовать где угодно, эта ф-ция не требует никаких внешних адресов

HANDLE CreateMailslot(

LPCTSTR lpName, // pointer to string for mailslot name
DWORD nMaxMessageSize, // maximum message size
DWORD lReadTimeout, // milliseconds before read time-out
LPSECURITY_ATTRIBUTES lpSecurityAttributes // pointer to security structure
);


Parameters

lpName

Points to a null-terminated string specifying the name of the mailslot. This name must have the following form:



\\.\mailslot\[path]name (вот он - адрес !!)

The name field must be unique. The name may include multiple levels of pseudodirectories separated by backslashes. For example, both \\.\mailslot\example_mailslot_name and \\.\mailslot\abc\def\ghi are valid names.


← →
me   (2003-09-30 13:16) [2]

Только в локальной сети, в MSDN написано:
"A mailslot client can send a message to a mailslot on its local computer, to a mailslot on another computer, or to all mailslots with the same name on all computers in a specified network domain."


← →
Digitman ©   (2003-09-30 13:24) [3]


> me


а какое отношение вызов CreateMailslot() имеет к "can send" ?
никакого ... ничего он не передает никуда в момент вызова


> in a specified network domain


конкретный домен необязательно обединяет компьютеры только одной ЛВС


← →
me   (2003-09-30 14:20) [4]

То есть речь не идет о полезном использовании Mailslot для межпроцессного взаимодействия (IPC)? Тогда можно.



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

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



Память: 0.45 MB
Время: 0.016 c
3-78764
pashaz
2003-11-02 20:33
2003.11.24
вывод в DBGrid


4-79234
plyaznik
2003-09-28 02:07
2003.11.24
Как реализовать Application.ProcessMessages на WinApi?(-)


1-78900
_jek
2003-11-14 18:58
2003.11.24
Текстовые файлы и ADO


1-79041
yuri
2003-11-12 16:11
2003.11.24
Измерение точного времени по нажатию клавиши


1-79026
bers
2003-11-13 22:04
2003.11.24
Ожидание завершения чужой программы




   Наверх