Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of azure_c_shared_utility by
tcpsocketconnection_c.h@0:fa2de1b79154, 2016-04-08 (annotated)
- Committer:
- Azure.IoT Build
- Date:
- Fri Apr 08 12:01:36 2016 -0700
- Revision:
- 0:fa2de1b79154
1.0.4
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Azure.IoT Build | 0:fa2de1b79154 | 1 | // Copyright (c) Microsoft. All rights reserved. |
| Azure.IoT Build | 0:fa2de1b79154 | 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. |
| Azure.IoT Build | 0:fa2de1b79154 | 3 | |
| Azure.IoT Build | 0:fa2de1b79154 | 4 | #ifndef TCPSOCKETCONNECTION_C_H |
| Azure.IoT Build | 0:fa2de1b79154 | 5 | #define TCPSOCKETCONNECTION_C_H |
| Azure.IoT Build | 0:fa2de1b79154 | 6 | |
| Azure.IoT Build | 0:fa2de1b79154 | 7 | #ifdef __cplusplus |
| Azure.IoT Build | 0:fa2de1b79154 | 8 | extern "C" { |
| Azure.IoT Build | 0:fa2de1b79154 | 9 | #endif |
| Azure.IoT Build | 0:fa2de1b79154 | 10 | |
| Azure.IoT Build | 0:fa2de1b79154 | 11 | typedef void* TCPSOCKETCONNECTION_HANDLE; |
| Azure.IoT Build | 0:fa2de1b79154 | 12 | |
| Azure.IoT Build | 0:fa2de1b79154 | 13 | TCPSOCKETCONNECTION_HANDLE tcpsocketconnection_create(void); |
| Azure.IoT Build | 0:fa2de1b79154 | 14 | void tcpsocketconnection_set_blocking(TCPSOCKETCONNECTION_HANDLE tcpSocketConnectionHandle, bool blocking, unsigned int timeout); |
| Azure.IoT Build | 0:fa2de1b79154 | 15 | void tcpsocketconnection_destroy(TCPSOCKETCONNECTION_HANDLE tcpSocketConnectionHandle); |
| Azure.IoT Build | 0:fa2de1b79154 | 16 | int tcpsocketconnection_connect(TCPSOCKETCONNECTION_HANDLE tcpSocketConnectionHandle, const char* host, const int port); |
| Azure.IoT Build | 0:fa2de1b79154 | 17 | bool tcpsocketconnection_is_connected(TCPSOCKETCONNECTION_HANDLE tcpSocketConnectionHandle); |
| Azure.IoT Build | 0:fa2de1b79154 | 18 | void tcpsocketconnection_close(TCPSOCKETCONNECTION_HANDLE tcpSocketConnectionHandle); |
| Azure.IoT Build | 0:fa2de1b79154 | 19 | int tcpsocketconnection_send(TCPSOCKETCONNECTION_HANDLE tcpSocketConnectionHandle, const char* data, int length); |
| Azure.IoT Build | 0:fa2de1b79154 | 20 | int tcpsocketconnection_send_all(TCPSOCKETCONNECTION_HANDLE tcpSocketConnectionHandle, const char* data, int length); |
| Azure.IoT Build | 0:fa2de1b79154 | 21 | int tcpsocketconnection_receive(TCPSOCKETCONNECTION_HANDLE tcpSocketConnectionHandle, char* data, int length); |
| Azure.IoT Build | 0:fa2de1b79154 | 22 | int tcpsocketconnection_receive_all(TCPSOCKETCONNECTION_HANDLE tcpSocketConnectionHandle, char* data, int length); |
| Azure.IoT Build | 0:fa2de1b79154 | 23 | |
| Azure.IoT Build | 0:fa2de1b79154 | 24 | #ifdef __cplusplus |
| Azure.IoT Build | 0:fa2de1b79154 | 25 | } |
| Azure.IoT Build | 0:fa2de1b79154 | 26 | #endif |
| Azure.IoT Build | 0:fa2de1b79154 | 27 | |
| Azure.IoT Build | 0:fa2de1b79154 | 28 | #endif /* TCPSOCKETCONNECTION_C_H */ |
