workerman的使用实践--并与solaris通信

Workerman与solarisTCP通信测试

1、  笔记本win7,tcp_test.php

2、  solaris,test.c 

编译命令: gcc test.c –o  test –lsocket -lnsl

Solaris上执行 test 123

返回结果: hello 123

3、  修改测试程序,包括warp.c warp.h

运行 ./test

输入:123

返回 hello 123

4、  solaris10使用JSON

先从网上下载cJSON的库文件(包括.h 和.c)

编译时要加编译选项 -lm

原文地址:https://www.cnblogs.com/xihong2014/p/8423872.html