C# 允许多个套接字绑定在同一个端口上 端口重用

来源:互联网 发布:中文字体软件 编辑:程序博客网 时间:2024/05/20 17:38
        public void ListenLocal() {            MainServer.Server.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReuseAddress, true);            MainServer.Start();        }

0 0
原创粉丝点击