摘要: -module(lib_chan_cs).%% 实现服务器端结构和机制的模块-export([start_raw_server/4, start_raw_client/3]).-export([stop/1]).-export([children/1]).%% 客户端调用,用来连接服务器start_raw_client(Host, Port, PacketLength) -> gen_tcp:connect(Host, Port, [binary, {active, true}, {packet, PacketLength}]).%%启动服务器%%以给定端口创建名字... 阅读全文
posted @ 2013-10-01 10:06 Jingle Guo 阅读(870) 评论(0) 推荐(0) 编辑