Introduction to Advanced Server for UNIX

Shared resources

2.2.6.2Mailslots

Mailslots are unidirectional communication channels. They are created by an application process on the server or by a client process on the client. In contrast to LM named pipes, several processes can write to the same mailslot simultaneously but only the process that created the mailslot can read from it.

Example

A reading process (on the server server1) creates a mailslot with the name ms. This program waits for messages for the mailslot. The writing program sends a message to the network name of the mailslot //server1/mailslot/ms.

The developer implements this in the program sources for client processes using the API functions, in compliance with MS-DOS and OS/2 naming conventions:

In the reading program using DosMakeMailslot(\\\\mailslot\\ms, ..) and in the writing program using DosWriteMailslot(\\\\server1\\mailslot\\ms, ,..).

The following calls are used in the processes on the server:

In the reading program using DosMakeMailslot(//mailslot/ms, ..) and in the writing program using DosWriteMailslot(//server1/mailslot/ms, ,..).

2.2.7Using the UNIX operating system from the PC

You can execute UNIX commands from the PC over the netrun service. For further infor- mation, please consult “Chapter 5 - Enhanced Reference” in the manual “User's Guide for MS-DOS Clients”.

Product Manual

U7613-J-Z815-6-76

Page 19
Image 19
Siemens V4.0 manual Using the Unix operating system from the PC, Mailslots