## HttpServer::getaddress_ipv4
###接口说明
>设置最大并发连接数。
>
+++
put:getaddress_ipv4
var:socketIndex=连接索引#
<<<
success
无返回类型
+++
###代码演示
~~~
var test2(var httptype,var params,var socketIndex)
{
http.send(socketIndex,"您的IP是:"..http.getaddress_ipv4(socketIndex));
}
var http = new HttpServer;
var main(var thread,var params)
{
http.init(thread);
http.setPort(4601);
http.setMaxSocketCount(5000);
http.startService();
//变量方式注册
http.handleFunc("/test2",test2);
}
~~~
- 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