|
plptools
|
Functions | |
| template<typename Client , typename Client16 , typename Client32 > | |
| Client * | connect (const std::string &host, int port, bool waitForDevice, Enum< ConnectionError > *error) |
Create a new NCP client instance, selecting the appropriate subclass based on the device type reported by an NCP$INFO query. More... | |
| Client * ncp_client::connect | ( | const std::string & | host, |
| int | port, | ||
| bool | waitForDevice, | ||
| Enum< ConnectionError > * | error | ||
| ) |
Create a new NCP client instance, selecting the appropriate subclass based on the device type reported by an NCP$INFO query.
Fails instantly if ncpd isn't running or accepting connections.
| host | The host be used for connecting to the ncpd daemon. |
| port | The port be used for connecting to the ncpd daemon. |
| waitForDevice | Continue reconnecting to the ncpd daemon until a Psion is available for connection; blocking. |
| error | Out-parameter returning any error encountered; set to FACERR_NONE on success. |
Definition at line 53 of file ncpclient.h.