## Server::setMaxPacketCount
###接口说明
>单用户消息池最大数量
>
+++
put:setMaxPacketCount
var:count=单用户最大接收封包数量#
<<<
success
无返回类型
+++
###代码演示
~~~
var server = new Server;
var onAcceptFunc(var socketIndex)
{
}
var onReadFunc(var socketIndex,var data)
{
server.send(socketIndex,"收到");
}
var onCloseFunc(var socketIndex)
{
}
var main(var thread,var params)
{
server.init(thread););
server.setMaxSocketCount(1000);
server.setMaxPacketCount(100);
server.setPort(6000);
server.setUseHead(true);
server.bind(onAcceptFunc,onReadFunc,onCloseFunc);
server.startService();
}
~~~
- base函数库
- md5
- sha1
- LOG
- jsonencode
- jsondecode
- postMsgToThread
- base64_encode
- base64_decode
- urlencode
- urldecode
- U2G
- G2U
- parseurl
- parseurlparam
- HttpServer
- init
- handleFunc
- setPort
- setMaxSocketCount
- send
- startService
- stopService
- redirect
- getaddress_ipv4
- Server
- init
- startService
- stopService
- setPort
- setMaxSocketCount
- bind
- send
- setUseHead
- setMaxPacketCount
- closesocket
- Client
- init
- connect
- send
- bind
- closesocket
- Thread
- setScriptFile
- setScriptParam
- startThread
- stopThread
- getThreadID
- Mysql
- connect
- execute
- setSPName
- executeCommand
- addParamter
- queryRecord
- getRecordCount
- HttpHelper
- doGet
- doPost
- addHeader
- getHeaderData
- setProxy
- setCookie
- EmailHelper
- config
- addText
- addTitle
- addFile
- send
- Downloader
- setUrl
- setFilePath
- download
- close