| 1 |
// Copyright (c) Microsoft. All rights reserved. |
| 2 |
// Licensed under the MIT license. See LICENSE file in the project root for full license information. |
| 3 |
|
| 4 |
#ifndef SERVER_PROTOCOL_IO_H |
| 5 |
#define SERVER_PROTOCOL_IO_H |
| 6 |
|
| 7 |
#ifdef __cplusplus |
| 8 |
extern "C" { |
| 9 |
#include "cstdint" |
| 10 |
#else |
| 11 |
#include "stdint.h" |
| 12 |
#endif /* __cplusplus */ |
| 13 |
|
| 14 |
#include "azure_c_shared_utility/xio.h" |
| 15 |
|
| 16 |
typedef struct SERVER_PROTOCOL_IO_CONFIG_TAG |
| 17 |
{ |
| 18 |
XIO_HANDLE underlying_io; |
| 19 |
ON_BYTES_RECEIVED* on_bytes_received; |
| 20 |
void** on_bytes_received_context; |
| 21 |
} SERVER_PROTOCOL_IO_CONFIG; |
| 22 |
|
| 23 |
#ifdef __cplusplus |
| 24 |
} |
| 25 |
#endif /* __cplusplus */ |
| 26 |
|
| 27 |
#endif /* SERVER_PROTOCOL_IO_H */ |