We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WService.cs代码中如下代码片段
HttpListenerContext httpListenerContext = await this.httpListener.GetContextAsync();
HttpListenerWebSocketContext webSocketContext = await httpListenerContext.AcceptWebSocketAsync(null);
WChannel channel = new WChannel(this.GetId, webSocketContext, this);
this.channels[channel.Id] = channel;
NetServices.Instance.OnAccept(this.Id, channel.Id, channel.RemoteAddress);
其中NetServices.Instance.OnAccept(this.Id, channel.Id, channel.RemoteAddress); 这行的channel.RemoteAddress是没有值的,应该改为 httpListenerContext.Request.RemoteEndPoint
The text was updated successfully, but these errors were encountered:
好的
Sorry, something went wrong.
No branches or pull requests
WService.cs代码中如下代码片段
HttpListenerContext httpListenerContext = await this.httpListener.GetContextAsync();
HttpListenerWebSocketContext webSocketContext = await httpListenerContext.AcceptWebSocketAsync(null);
WChannel channel = new WChannel(this.GetId, webSocketContext, this);
this.channels[channel.Id] = channel;
NetServices.Instance.OnAccept(this.Id, channel.Id, channel.RemoteAddress);
其中NetServices.Instance.OnAccept(this.Id, channel.Id, channel.RemoteAddress);
这行的channel.RemoteAddress是没有值的,应该改为
httpListenerContext.Request.RemoteEndPoint
The text was updated successfully, but these errors were encountered: