coTurn的附加程序命令行测试

本文详细介绍了coTurn的几个命令行工具,包括turnadmin、turnutils_peer和turnutils_uclient的使用,并提到了turnutils_natdiscovery和turnutils_stunclient的测试。在turnadmin部分,解释了如何设置长期凭证,以及SASLprep函数的作用。同时指出,如果参数中包含中文可能会导致错误。turnutils_peer用于接收测试,而turnutils_uclient则进行客户端测试,未开启peer时会导致丢失所有数据。
摘要由CSDN通过智能技术生成
turnadmin

看了代码以后发现turnadmin和turnserver其实是一个程序,代码中判断了第一个命令行参数是否”turnadmin”来区别。
trunadmin的入口为:mainrealy.c的adminmain函数

1) For the long-term credentials there must be keys
“turn/realm//user//key” and the values must be
the the hmackeys. For example, for the user “gorst”, realm “north.gov”
and password “hero”, there must be key “turn/realm/north.gov/user/gorst/key”
with value “7da2270ccfa49786e0115366d3a3d14d”.

以上turndb/schema.userdb.redis中的说明,对应以下命令行:

./turnadmin -k  -u gorst -p hero -r north.gov
返回:0x7da2270ccfa49786e0115366d3a3d14d
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值