sp_tbs.h 489 B

123456789101112131415161718192021222324
  1. #ifndef SP_TBS_H
  2. #define SP_TBS_H
  3. #pragma once
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. /** tcp bridge server, mainly for silverlight usage */
  8. typedef struct sp_tbs_t sp_tbs_t;
  9. typedef struct sp_ses_mgr_t sp_ses_mgr_t;
  10. int sp_tbs_create(sp_ses_mgr_t *ses_mgr, const char *ipaddr, unsigned short port, sp_tbs_t **p_tbs);
  11. int sp_tbs_start(sp_tbs_t *tbs);
  12. void sp_tbs_stop(sp_tbs_t *tbs);
  13. void sp_tbs_destroy(sp_tbs_t *tbs);
  14. #ifdef __cplusplus
  15. } // extern "C" {
  16. #endif
  17. #endif // SP_TBS_H