Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pt/ptreattach.html on line 1

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pt/ptreattach.html on line 1

Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pt/ptreattach.html on line 8

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pt/ptreattach.html on line 8

PtReattach()

Send an application to another Photon server

Synopsis:

int PtReattach( char *device );

Library:

ph

Description:

This function unrealizes all top-level widgets in an application, disconnects them from the current Photon server, connects to the Photon server indicated by device (e.g. /net/sam/dev/photon), and realizes the top-level widgets at the new location.

As a result, the PHOTON environment variable is set and the user interface is rehosted to the new Photon server.

Returns:

0
Success.
-1
Unable to connect to device due to insufficient memory.

Examples:

int transport_edit_activate( PtWidget_t *widget, 
      void *data, PtCallbackInfo_t cbinfo );
{
     PtTextCallback_t *tcb=cbinfo->cbdata;
     PtReattach( tcb->text );
}

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pt/ptreattach.html on line 110

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pt/ptreattach.html on line 110