====================================================================================================================

A mailslot is a pseudofile that resides in memory, and you use standard file functions to access it. The data in a mailslot message can be in any form, but cannot be larger than 424 bytes when sent between computers. Unlike disk files, mailslots are temporary. When all handles to a mailslot are closed, the mailslot and all the data it contains are deleted.
A mailslot server is a process that creates and owns a mailslot. When the server creates a mailslot, it receives a mailslot handle. This handle must be used when a process reads messages from the mailslot. Only the process that creates a mailslot or has obtained the handle by some other mechanism (such as inheritance) can read from the mailslot. All mailslots are local to the process that creates them. A process cannot create a remote mailslot.
A mailslot client is a process that writes a message to a mailslot. Any process that has the name of a mailslot can put a message there. New messages follow any existing messages in the mailslot.
Mailslots can broadcast messages within a domain. If several processes in a domain each create a mailslot using the same name, every message that is addressed to that mailslot and sent to the domain is received by the participating processes. Because one process can control both a server mailslot handle and the client handle retrieved when the mailslot is opened for a write operation, applications can easily implement a simple message-passing facility within a domain.
To send messages that are larger than 424 bytes between computers, use named pipes or Windows Sockets instead.

====================================================================================================================

---위 내용 http://msdn.microsoft.com 에서 퍼옴---




내용인 즉 메일슬롯의 생성은 로컬에서만 가능하고 원격지에 생성은 않된다.

원격지로 메일슬롯을 보낼때는 424바이트를 넘길 수 없다.

도메인 메일슬롯을 생성하여 같은 도메인내의 프로세서들이 공용으로 사용할수 있다.

뭐 이런 내용이다.

메일 슬롯을 사용하는데 내용은 알고 사용하자.


Posted by 훈이아제
,