2 Star 2 Fork 4

WolfCS / stund

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
Running the STUN server:
------------------------

You need to have 2 IP addresses next to each other or 
have 2 hosts and each of them have 1 IP address to run the STUN server.

If you have 2 IP addresses next to each other on the same host, you can:
./stun_server -h primary-ip -a secondary-ip -b

If you have 2 hosts and each of them have 1 IP address, you can:
./stun_server -h primary-ip -u secondary-ip(pub)/secondary-ip(priv) -b

STUN server version 0.97
Usage: 
 ./stun_server [-v] [-h] [-e] [s] [-h IP_Address] [-a IP_Address] [-u IP_Address/IP_Address] 
    [-p port] [-o port] [-d port] [-m mediaport]
 
 If the IP addresses of your NIC are 10.0.1.150 and 10.0.1.151, run this program with
    ./stun_server -v  -h 10.0.1.150 -a 10.0.1.151

If the IP addresses of one of your host is 172.16.10.55. There is another host, of which the NIC
is 172.16.10.59, and there is a public IP address 123.45.32.76 being bind to it, run this
program with
    ./stun_server -b  -h 172.16.10.55 -u 123.45.32.76/172.16.10.59

 STUN servers need two IP addresses and two ports, these can be specified with:
  -e whether receive msg with epoll mechanism
  -s whether display statistics logs
  -h sets the primary IP
  -a sets the secondary IP
  -u sets the unbind secondary IP
  -p sets the primary port and defaults to 3478
  -o sets the secondary port and defaults to 3479
  -d sets the unbind secondary communication port and defaults to 3481
  -b makes the program run in the background
  -m sets up a STERN server starting at port m
  -s runs in verbose statistics mode
  -v runs in verbose mode

空文件

简介

stund本身是一个比较简洁的STUN协议的服务端实现。 但stund本身有着固有的不足:即不支持在多主机上部署。 本项目对stund的实现进行优化,以支持多主机的部署。 展开 收起
C++
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
C++
1
https://gitee.com/wolfcs/stund.git
git@gitee.com:wolfcs/stund.git
wolfcs
stund
stund
master

搜索帮助