You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
519 B
26 lines
519 B
11 months ago
|
'''
|
||
|
数据结构定义类
|
||
|
'''
|
||
|
import ctypes
|
||
|
|
||
|
'''
|
||
|
iDataType 0-心跳,1-设备端登录,2-手机端登录,3-
|
||
|
'''
|
||
|
class CSHeadMessage(ctypes.Structure):
|
||
|
_fields_ = [
|
||
|
('Flag',ctypes.c_char * 4),
|
||
|
('iDataType',ctypes.c_int),
|
||
|
('iDataLen',ctypes.c_int)
|
||
|
]
|
||
|
|
||
|
class CSDevLogin_Data(ctypes.Structure):
|
||
|
_fields_ = [('DID',ctypes.c_char * 32)]
|
||
|
|
||
|
class CSAPPLogin_Data(ctypes.Structure):
|
||
|
_fields_ = [
|
||
|
('username', ctypes.c_char * 32),
|
||
|
('passwd', ctypes.c_char * 32)
|
||
|
]
|
||
|
|
||
|
|