.net 4.0的C#SSL WebSocket客户端中有什么? [英] is there in C# SSL WebSocket Client that is .net 4.0?

查看:491
本文介绍了.net 4.0的C#SSL WebSocket客户端中有什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道目前是否与此主题有关:我找到了各种示例这个类似的问题以来,有没有可靠的ssl版本?回答.

I was wondering if there is anything on this subject at the moment: I have found various examples EG: the 4.5 system.net.websockets.websocket for ssl (wss://) clients in c# and I was wondering if there were any reliable ssl versions out there since this similar question was answered.

但是我正在Visual c#2010中进行开发,这是一个必须接收服务器推送的winforms C# client 应用程序,但是它是Windows 7,所以我不能使用net 4.5. (注意:重点是 client )

But I am developing in Visual c# 2010, a winforms C# client application that has to receive server pushes, but it's Windows 7 so I can't us net 4.5 . (Note: the emphasis on the client)

如果任何人都有任何用于SSL的实际代码(希望该代码不必强制执行证书身份验证提示),我将不胜感激-我更喜欢代码示例-但我将采用名称空间解决方案.

If anyone has any actual code for SSL (hopefully one that doesn't necessarily enforce the certificate authentication prompt) I would appreciate it - I prefer code samples - but I'll take a namespace solution.

预先感谢:-)

推荐答案

因此,您可以在Windows 7中使用.NET 4.5,只需下载正确的版本(在msdn.com上,它具有适用于Win 8的dl). Visual Studio .

So you can use .NET 4.5 in Windows 7, you just need to download the right version (on msdn.com it has the dl for Win 8) of Visual Studio.

示例连接

使用TCP版本的示例

常规WebSocket文档

这篇关于.net 4.0的C#SSL WebSocket客户端中有什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆