更高版本的套接字可以与套接字更低版本通信 [英] Can socket of higher version communicate with socket lower version

查看:76
本文介绍了更高版本的套接字可以与套接字更低版本通信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有VS2005 和VS2010 for Windows phone。 在VS2010中,有更高版本的TcpSocket客户端和服务器。在VS2005中,我有一个旧版本的套接字,例如TCPListener,我用它来创建TCP服务器作为桌面应用程序,所有TCP客户端都是
。我有这些问题:

Hi, I have VS2005  and VS2010 for windows phone.  In VS2010, there is TcpSocket client and server of higher version . In VS2005, I have older version socket such as TCPListener which I used to create TCP Server used as Desktop app  for all the TCP clients. I have these questions:

1. 可以在VS2010中创建应用程序,例如使用Tcp Socket客户端的Windows phone App 将数据发送到使用TCP侦听器在VS2005中创建的TCP服务器?

1. Can app created in VS2010 such as Windows phone App using Tcp Socket client  to send data to a TCP Server which created in VS2005 using TCP listener?

2.  TcpListener(在VS2005中创建)是否能够捕获使用TCP套接字客户端的Windows手机的IPAddr?

2.  Can TcpListener (Created in VS2005) able to capture the IPAddr of the Windows phone that use TCP Socket Client?

3。这两个版本的socket要沟通的任何问题?

3. Any issues for These two version of socket to communicate ?

谢谢

推荐答案

套接字连接方法遵循IEEE RFC规范,因此任何版本的库(包括unix和linux)都可以连接。在一起 我所知道的唯一问题是一些错误路径在库之间有所不同,因为
RFC规范不够具体,无法明确定义所有要求。 例如,如果连接的两端同时关闭,则连接有时会挂起。
The socket connection methods follow the IEEE RFC specifcaitions so any version of the library (including unix and linux) can connect together.  The only issues I know of is some of the error paths are implimented differently between libraries because the RFC specifcation is not specific enough to clear define all the requirements.  For example, if both ends of a connection close at the same time the conection sometimes hangs.


这篇关于更高版本的套接字可以与套接字更低版本通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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