guowenxue
2020-08-21 02f4d9518378031c63df7a36c49d8b2eabdaab90
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/********************************************************************************
 *      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 <guowenxue@gmail.com>
 *      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_  ----- */