/******************************************************************************** * Copyright: (C) 2018 LingYun IoT System Studio * All rights reserved. * * Filename: sp2sck.h * Description: This head file * * Version: 1.0.0(2018年05月29日) * Author: Guo Wenxue * ChangeLog: 1, Release initial version on "2018年05月29日 21时05分43秒" * ********************************************************************************/ #ifndef _SP2SCK_H_ #define _SP2SCK_H_ #include "cp_comport.h" #include "cp_socket.h" typedef struct sp2sck_ctx_s { char hostname[DOMAIN_MAX_LEN]; /* socket connect server address */ unsigned short port; /* socket connect server port */ cp_comport_t *comport; /* serial port context, include fd */ cp_socket_t socket; /* socket port context, include fd */ } sp2sck_ctx_t; /*--- end of struct sp2sck_ctx_s ---*/ #endif /* ----- #ifndef _SP2SCK_H_ ----- */