beautypg.com

2 mailslots, 7 using the unix operating system from the pc – Siemens Unix V4.0 User Manual

Page 19

background image

Introduction to Advanced Server for UNIX

Shared resources

Product Manual

U7613-J-Z815-6-76

©

S

iem

e

n

s

N

ix

dor

f

In

fo

rm

at

io

n

s

s

y

s

te

m

e

A

G

1

9

9

5

P

fad

: D:

\O

7

613

e6

\u

761

3e

.k

02

2.2.6.2

Mailslots

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

Using 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”

.