|
Neonode zForce(TM) SDK
|
Handles connections. More...
Go to the source code of this file.
Classes | |
| struct | ConnectionMessage |
| struct | Connection |
| The main Connection struct. More... | |
Typedefs | |
| typedef enum ConnectionStatus | ConnectionStatus |
| typedef struct ConnectionMessage | ConnectionMessage |
| typedef struct Connection | Connection |
Enumerations | |
| enum | ConnectionStatus { Connected, Disconnected, ConnectionFault } |
| Connection events. More... | |
Functions | |
| DLLINTERNAL ConnectionMessage * | ConnectionMessage_New (ConnectionStatus connectionStatus, uint32_t errorCode) |
| DLLEXTERNAL Connection * | Connection_New (char *connectionString, char *protocolString, char *dataFrameType) |
| Create a new Connection. More... | |
Handles connections.
Handles connections, acts as the glue between devices, protocols and transports. Also handles queues to notify software about incoming messages.
| typedef struct Connection Connection |
| typedef enum ConnectionStatus ConnectionStatus |
| enum ConnectionStatus |
Connection events.
| Enumerator | |
|---|---|
| Connected |
Status changed to Connected. |
| Disconnected |
Status changed to Disconnected. |
| ConnectionFault |
Connection Fault. |
| DLLEXTERNAL Connection* Connection_New | ( | char * | connectionString, |
| char * | protocolString, | ||
| char * | dataFrameType | ||
| ) |
Create a new Connection.
This call does not actually connect, it just creates the binding between the Protocol and Transport.
On failure, errno is set.
| connectionString | A Transport specific connection string. |
| protocolString | A Protocol specific prototocol string. |
| dataFrameType | Which Data Frame Type the Transport and Protocol uses. |
1.8.11