![]() |
| ||
|
|
Новости |
Поиск |
FAQ |
Статьи |
Книги |
Новости VCL
| | Форумы ЧАТ |
Орешник |
|
| |||
| |||
« предыдущая ветвь | форум | следующая ветвь »
CreateMailslot [D7]
LVitaliy © (2003-09-30 08:40:00)
Можно ли использовать CreateMailslot не в локальной сети заная при этом IP адрес если можно то какой адрес использовать
me (2003-09-30 14:20:00) [1]
То есть речь не идет о полезном использовании Mailslot для межпроцессного взаимодействия (IPC)? Тогда можно.
Digitman (2003-09-30 13:24:00) [2]
> me
а какое отношение вызов CreateMailslot() имеет к "can send" ?
никакого ... ничего он не передает никуда в момент вызова
> in a specified network domain
конкретный домен необязательно обединяет компьютеры только одной ЛВС
me (2003-09-30 13:16:00) [3]
Только в локальной сети, в 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 09:17:00) [4]
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.