网络安全 频道

浅谈PHP的Socket模块

bsp;     $this->sms_sock=’’;
          $this->halt("error in submit logininfo: loginid=$this->loginuser 

loginpass=$this->loginpass");
          return false;
        }
    }
    return true;
  }

  function halt($msg){
    echo $msg;
    flush();
    $this->error_stop && exit;
  }
}

[Copy to clipboard]

此例应用:主要用于底层的不依赖于http一类协议的通讯使用。在phpclass这个站点上有个smpp模块更为详细的演示了此类应用有兴趣的朋友可以看看。
末了,不多说。由于时间仓促,有些得不对的地方,望各位用pm通知我,我会及时更正,有什么疑问也可以pm我。

参考资料:
1、rfc 959 (ftp 协议)
2、RFC 3912 (WHOIS Protocol)
3、SMPP(SMPP Short Message Peer to Peer)
4、CMPP (China Mobile Peer to Peer

http://www.cnxhacker.com/Article/program/other/200604/3420_2.html

0
相关文章