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/ptconnectorcreate.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/ptconnectorcreate.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/ptconnectorcreate.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/ptconnectorcreate.html on line 8
Create a connector
PtConnector_t *PtConnectorCreate(
const char *name,
PtConnectorCallbackFunc_t *cb,
void *data );
- name
- The name to register, or NULL for a nameless connector.
If name isn't NULL, it must be unique; an attempt to create a
connector with a name that's already registered will fail.
- cb
- A callback to call for each client that connects.
PtConnectorCallbackFunc_t is a function type:
typedef void PtConnectorCallbackFunc_t(
PtConnector_t *,
PtConnectionServer_t *,
void * );
The callback is called each time a new server connection
object is created as a response to a connection request from a client.
- data
- Extra data to pass to the callback as the last argument.
ph
This function creates a connector.
A pointer to a PtConnector_t structure that describes the
connector.
Photon
Safety: | |
Interrupt handler |
No |
Signal handler |
No |
Thread |
No |
PtConnectorDestroy(),
PtConnectorGetId()
“Connections”
in the Interprocess Communication chapter of the
Photon Programmer's Guide
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/ptconnectorcreate.html on line 127
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/ptconnectorcreate.html on line 127