各种编码解码的使用
文件地址:https://github.com/jianghuatao1/cits-interfaces
前提下载需求:
# install asn1c
sudo apt-get update
sudo apt-get install asn1c
# compile asn files
asn1c *.asn
# asn usage parameters
man asn1c
首先需要对TCSAE进行make,命令为make -f <makefile文件名>
之后屏蔽掉含有main的convert-sample.c/convert-sample.o文件,保证不会main重复定义。
再进入interfaces文件夹,进行make -f <makefile文件名>,通过编译,生成test-sample.exe,执行./ test-sample.exe
客户端开启后接受的打印内容:
接着,打开另一个终端,执行gcc -o test-server test-server.c citssocket.o,生成test-server的可执行文件,执行./ test-server
打印内容;