socket连接c#和android [英] socket connection c# and android

查看:85
本文介绍了socket连接c#和android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



1.我想制作.net套接字服务器谁将连接Android客户端。

哪个框架最适合套接字服务器.net for andorid clients。



2.如果客户端改变wifi的连接,我会失去服务器和客户端之间的套接字连接吗?



thnx

抱歉我的英文不好。

Hi
1. I wanna make .net socket server who will be connected android clients.
which framework is the best for socket server .net for andorid clients.

2. if the client will change the connection of wifi will i lose the connection of socket between server and client?

thnx
sorry for my bad english.

推荐答案

1。 最佳框架?好吧,如果你想用C#做,那么我认为.NET是最好的。



2.这取决于你的协议,以及你是否包含代码重新建立连接。



套接字是套接字,无论是.NET,Android,C ++等,它们都使用TCP或UDP通过OSI堆栈运行。您需要做的就是设计一个服务器和客户都同意的消息交换。
1. The 'best' framework? Well, if you want to do it in C#, then I think .NET is the best.

2. It depends on your protocol, and whether you include code to recreate the connection.

Sockets are sockets, whether in .NET, Android, C++ etc, they all operate through the OSI stack using TCP or UDP. All you need to do is design a message exchange that your server and clients both agree on.


这篇关于socket连接c#和android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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