net_stream.h 778 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * Copyright (c) 2018 Actions Semiconductor Co., Ltd
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. /**
  7. * @file net stream interface
  8. */
  9. #ifndef __NET_STREAM_H__
  10. #define __NET_STREAM_H__
  11. #include <stream.h>
  12. #include "http_client.h"
  13. #include "tcp_client.h"
  14. /**
  15. * @defgroup net_stream_apis Net Stream APIs
  16. * @ingroup stream_apis
  17. * @{
  18. */
  19. /**
  20. * @brief create net stream , return stream handle
  21. *
  22. * This routine provides create stream ,and return stream handle.
  23. * and stream state is STATE_INIT
  24. *
  25. * @param param create stream parama
  26. *
  27. * @return stream handle if create stream success
  28. * @return NULL if create stream failed
  29. */
  30. io_stream_t net_stream_create(struct request_info *param);
  31. /**
  32. * @} end defgroup net_stream_apis
  33. */
  34. #endif /* __NET_STREAM_H__ */