- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
TMOSCMD::IP Command Description IP::remote_addr 返回远端IP地址 IP::local_addr 返回本地IP地址(通常为VSIP, SelfIP) IP::client_addr 返回客户端IP IP::server_addr 返回服务端IP IP::addr addr1[/mask] equals addr2[/mask] 比较两个IP when CLIENT_ACCEPTED { if { [IP::addr [IP::client_addr] equals 0] } { pool my_pool } } TMOSCMD::TCP Command Description TCP::remote_port Returns the remote TCP port/service number of a TCP connection. TCP::local_port Returns the local TCP port/service number of a TCP connection. TCP::client_port Returns the remote TCP port/service number of the clientside TCP connection. TCP::server_port Returns the remote TCP port/service number of the serverside TCP connection. TCP::unused_port remote_addr remote_port local_addr [hint_port] Returns an unused TCP port for the specified IP tuple, using the value of hint_port as a starting point if it is supplied. If no appropriate unused local port could be found, 0 is returned. TMOSCMD::TCP Command Description TCP::collect 收集TCP payload数据,每次收到packet都触发CLIENT_DATA 事件. TCP::collect collect_bytes 收集指定长度的TCP payload数据,完成后触发CLIENT_DATA 事件. TCP::collect collect_bytes skip_bytes 跳过部分数据之后,再收集指定长度的TCP payload数据,完成后触发CLIENTA 事件. ** Delay Connecting 当 skip_bytes 存在,即使为0,将导致 Delay Connecting 失效 建议如果要有用,请充分测试 TMOSCMD::TCP Command Description TCP::payload [size] 返回全部或指定长度的payload内容 TCP::payload replace offset length data 使用data替换payload中自偏移量offset开始,长度为length的内容 TCP::payload length 返回payload内功的长度 TCP::offset Returns the number of bytes currently held in memory via TCP::collect. TCP::release [length] Releases and flushes collected data, and resumes processing. Returns the number of bytes actually released. TMOSCMD::TCP Command Description TCP::respond data Sends the specified data directly to the peer. TCP::close Closes the TCP connection. when SERVER_CONNECTED { peer { TCP::collect 4 } } when CLIENT_DATA { if { [TCP::payload] starts_with EHLO } { TCP::respond 500 5.3.3 Unrecognize
您可能关注的文档
最近下载
- 蒂森MC2详细说明.pdf VIP
- 公交公司安全工作总结.docx VIP
- 打点计时器试卷习题精选附答案(出试卷可选用) .doc VIP
- (正式版)SH∕T 3006-2024 石油化工控制室设计规范.pdf VIP
- (完整版)打点计时器试卷习题附答案(出试卷可选用).docx VIP
- 国家开放大学——政治学原理——章七 自检自测—2022春季作业—2021秋季班.doc VIP
- 在线网课学习课堂《社会研究方法( 华科)》单元测试考核答案.docx VIP
- 蒂升电梯调试资料MC2B门机BG211-BG211C.pdf VIP
- 提高卧床患者踝泵运动的执行率.pptx VIP
- 蒂森MC2-B系统调试手册.pdf VIP
原创力文档


文档评论(0)