PtConnectionTmpName()

Create a temporary name for a server

Synopsis:

char *PtConnectionTmpName( char name[32] );

Library:

ph

Description:

This function creates a temporary name that can be given to a new server. The name argument is the buffer in which to build the name.

If the same client may generate more temporary names in the future, the server should destroy its connector as soon as the client has connected — currently, there's only room for a few unique temporary names per client.

Returns:

A pointer to name, or NULL if a name couldn't be generated.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PtConnectionFindId(), PtConnectionFindName(), PtConnectionWaitForName()

Connections in the Interprocess Communication chapter of the Photon Programmer's Guide