本地计算机上的windows mailslot max size

时间:2009-06-01 00:21:24

标签: windows winapi ipc

在本地计算机上研究IPC的邮件邮箱后,我对数据报的最大大小有点困惑。 MSDN说

"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."

“在计算机之间发送”是令我困惑的。如果数据仅在同一台机器上从一个本地进程发送到另一个进程,那么是否有最大大小?

1 个答案:

答案 0 :(得分:2)

我自己找到了答案。是的,如果进程位于同一本地计算机上,它可以接收超过400个字节。它可以收到邮件缓冲区发送到的数量