摘要: 例如,需要发送以下数据struct header{ int type; // 消息类型 int length; // 消息长度}struct MSG_Q2R2DB_PAYRESULT{ int serialno; int openid; char payitem[512]; int billno; int zoneid; int providetype; int coins;}调用的方法,另外需require两个php文件,一个是字节编码类,另外一个socket封装类,其实主要看字节编码类就可以了! 1 public function index() { 2 $s... 阅读全文
posted @ 2013-01-04 10:27 易木 阅读(6619) 评论(1) 推荐(0) 编辑