Вниз
Скачать: 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.018 c
3-78840
axx
2003-11-04 08:00
2003.11.24
Тип Time & Yaffil


6-79089
explorer
2003-09-18 06:36
2003.11.24
Удаленный запуск программ


14-79178
Aristarh
2003-10-30 15:45
2003.11.24
Как несколько wav файлов склеить в один?


1-78955
Ира
2003-11-13 20:38
2003.11.24
Комп виснет при компиляции


3-78775
fearless
2003-11-04 10:23
2003.11.24
документы из BLOB в MS WORD




   Наверх