通过网络进行通信的最佳方式? [英] Best way to communicate over net?

查看:92
本文介绍了通过网络进行通信的最佳方式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

G''day all,


我要求通过

互联网在两台或多台PC之间进行通信,但我不知道如何要解决这个问题。


我不是在谈论这样的聊天程序,我想要一个全天候运行的

应用程序''基本PC''连接到互联网,

可以发送数据(如监控应用程序)。它不是设计用于聊天,而是发送我的应用程序使用的数据(这可以是二进制文件或xml或其他形式的

)。 br />

然后,我希望在我的应用程序中使用任何其他现场PC和正确的

用户名和密码,以便能够实时接收这些数据,并发回

数据。我还想将基本PC上的所有传出和传入数据保存到Internet上的某种日志中。我有一个网站

主机(主机怪物),如果有帮助吗?也许它可以记录数据

那里?


我不想玩静态IP,只需安装我的
''现场PC'上的
应用程序在

设置中输入正确的用户名和密码,然后关闭它。


我的初始以为是ftp,读取和写入数据文件,但它需要比bb更快 - 我需要它来立即收到数据

(不扫描ftp目录)每隔一段时间。


我希望我能很好地解释自己。任何人都可以建议使用

最好的方法吗?


非常感谢,

MrQuan

解决方案

你好,


你提到你不想担心静态IP,但是

服务器计算机,又名基本计算机,必须在

互联网上有一些静态位置,客户知道在哪里可以找到它。您的托管网站有一个

静态IP,您可以使用它并使用Web服务执行服务器客户端通信的所有

功能,其中您的asp.net Web服务

启用的网站基本上就是你正在寻找的服务器。


您还可以使用网络流(.Net 2.0的新功能)与

您的服务器应用程序到您的客户端应用程序。这不会像使用asp.net Web服务一样安全,但它是一种选择。最有可能的最好的办法是将数据和服务器功能保存在安全的Web服务器上,并通过网络方式连接您的应用程序,转动您的应用程序

进入智能客户端。不太安全的情况是在Web服务器上存储客户端IP

注册,而Web服务器在客户端上继续跟踪

IP,但网络通信是对等的,通过网络流和

只使用服务器获取客户端应用程序的当前IP。


我要研究的另一件事是.NET 3.0发布Windows通信

基金会,WCF。这是一篇关于它的文章,
http://msdn.microsoft.com//msdnmag/i...r/default.aspx


希望有所帮助。

MrQuan写道:


G''day all,


我要求通过<两台或多台PC之间进行通信br />
互联网,但是我不知道如何解决这个问题。


我不是在谈论这样的聊天程序,我希望有一个

应用程序在连接到互联网的基本PC上全天候运行,

可以发送数据(如监控应用程序)。它不是设计用于聊天,而是发送我的应用程序使用的数据(这可以是二进制文件或xml或其他形式的

)。 br />

然后,我希望在我的应用程序中使用任何其他现场PC和正确的

用户名和密码,以便能够实时接收这些数据,并发回

数据。我还想将基本PC上的所有传出和传入数据保存到Internet上的某种日志中。我有一个网站

主机(主机怪物),如果有帮助吗?也许它可以记录数据

那里?


我不想玩静态IP,只需安装我的
''现场PC'上的
应用程序在

设置中输入正确的用户名和密码,然后关闭它。


我的初始以为是ftp,读取和写入数据文件,但它需要比bb更快 - 我需要它来立即收到数据

(不扫描ftp目录)每隔一段时间。


我希望我能很好地解释自己。任何人都可以建议使用

最好的方法吗?


非常感谢,

MrQuan


只是使用你他妈的延迟的数据库


你可以通过互联网复制;你可以支持断开连接

客户


-Aaron

MrQuan写道:


G''day all,


我要求通过

互联网在两台或多台PC之间进行通信,但我不知道如何解决这个问题。


我不是在谈论这样的聊天程序,我希望有一个全天候运行的

应用程序连接到互联网的基本PC,即
可以发送数据(如监控应用程序)。它不是设计用于聊天,而是发送我的应用程序使用的数据(这可以是二进制文件或xml或其他形式的

)。 br />

然后,我希望在我的应用程序中使用任何其他现场PC和正确的

用户名和密码,以便能够实时接收这些数据,并发回

数据。我还想将基本PC上的所有传出和传入数据保存到Internet上的某种日志中。我有一个网站

主机(主机怪物),如果有帮助吗?也许它可以记录数据

那里?


我不想玩静态IP,只需安装我的
''现场PC'上的
应用程序在

设置中输入正确的用户名和密码,然后关闭它。


我的初始以为是ftp,读取和写入数据文件,但它需要比bb更快 - 我需要它来立即收到数据

(不扫描ftp目录)每隔一段时间。


我希望我能很好地解释自己。任何人都可以建议使用

最佳方法吗?


非常感谢,

MrQuan


如果您不想使用IP,请使用动态DNS服务。试试

" no-ip.com"。


大师

MrQuan写道:


G''day all,


我要求通过

互联网在两台或多台PC之间进行通信但是我不知道怎么回事。


我不是在谈论这样的聊天程序,我想要一个

应用程序在连接到互联网的基本PC上全天候运行,即
可以发送数据(如监控应用程序)。它不是设计用于聊天,而是发送我的应用程序使用的数据(这可以是二进制文件或xml或其他形式的

)。 br />

然后,我希望在我的应用程序中使用任何其他现场PC和正确的

用户名和密码,以便能够实时接收这些数据,并发回

数据。我还想将基本PC上的所有传出和传入数据保存到Internet上的某种日志中。我有一个网站

主机(主机怪物),如果有帮助吗?也许它可以记录数据

那里?


我不想玩静态IP,只需安装我的
''现场PC'上的
应用程序在

设置中输入正确的用户名和密码,然后关闭它。


我的初始以为是ftp,读取和写入数据文件,但它需要比bb更快 - 我需要它来立即收到数据

(不扫描ftp目录)每隔一段时间。


我希望我能很好地解释自己。任何人都可以建议使用

最佳方法吗?


非常感谢,

MrQuan


G''day all,

I have a requirement to communicate between two or more PCs over the
Internet, however I have no idea how to go about this.

I''m not talking about a chat programme as such, I want to have an
application running 24/7 on a ''base PC'' connected to the internet that
can send out data (like a monitoring application). It''s not designed
for chatting, but sending data used by my application (this can be in
the form of a binary file or xml or whatever).

I then want to have any other ''field PC'' with my app and the right
username and password to be able to recieve this data live, and send
data back. I would also like to save all outgoing and incoming data on
the ''base PC'' to a log of some sort on the Internet. I have a website
host (at host monster), if that helps? Perhaps it could log the data
there?

I don''t want to have to play around with static IPs, just install my
app on the ''field PC'' enter the right Username and Password in the
settings, and off it goes.

My initial thought was ftp, reading and writing data files, but it will
need to be faster than that - and I need it to recieve data instantly
(not scanning an ftp directory on intervals).

I hope I have explained myself well. Can anyone please suggest the
best method to use?

Many thanks,
MrQuan

解决方案

Hello,

You have mention that you don''t want to worry about static IPs, but the
server computer, aka ''base computer'', has to have some static location on the
internet where clients know where to find it. Your hosted website has a
static IP you could use and use web services to either perform all the
functionality of server client communication, where your asp.net web service
enabled website becames essentially the server you are looking for.

You can also use ''Network Streams'', new to .Net 2.0, to communicate from
your server application to your clients application. This is not going to be
a secure as using asp.net web services, but it is an option. Most likely your
best bet is to keep the data and server functionality on a secure web server
and interface your application through web methods, turning your application
into a smart client. A less secure situation would be to store a client IP
registration on a web server, whereas the web server keep tracking on client
IPs, but network communications are peer to peer, through network streams and
only uses the server to get the current IPs of the client applications.

Another thing I would look into is .NET 3.0 release of Windows Communication
Foundation, WCF. Here is an article on that,
http://msdn.microsoft.com//msdnmag/i...r/default.aspx

Hope that helps.
"MrQuan" wrote:

G''day all,

I have a requirement to communicate between two or more PCs over the
Internet, however I have no idea how to go about this.

I''m not talking about a chat programme as such, I want to have an
application running 24/7 on a ''base PC'' connected to the internet that
can send out data (like a monitoring application). It''s not designed
for chatting, but sending data used by my application (this can be in
the form of a binary file or xml or whatever).

I then want to have any other ''field PC'' with my app and the right
username and password to be able to recieve this data live, and send
data back. I would also like to save all outgoing and incoming data on
the ''base PC'' to a log of some sort on the Internet. I have a website
host (at host monster), if that helps? Perhaps it could log the data
there?

I don''t want to have to play around with static IPs, just install my
app on the ''field PC'' enter the right Username and Password in the
settings, and off it goes.

My initial thought was ftp, reading and writing data files, but it will
need to be faster than that - and I need it to recieve data instantly
(not scanning an ftp directory on intervals).

I hope I have explained myself well. Can anyone please suggest the
best method to use?

Many thanks,
MrQuan


just use a database you fucking retard

you can replicate over the internet; you can support disconnected
clients

-Aaron
MrQuan wrote:

G''day all,

I have a requirement to communicate between two or more PCs over the
Internet, however I have no idea how to go about this.

I''m not talking about a chat programme as such, I want to have an
application running 24/7 on a ''base PC'' connected to the internet that
can send out data (like a monitoring application). It''s not designed
for chatting, but sending data used by my application (this can be in
the form of a binary file or xml or whatever).

I then want to have any other ''field PC'' with my app and the right
username and password to be able to recieve this data live, and send
data back. I would also like to save all outgoing and incoming data on
the ''base PC'' to a log of some sort on the Internet. I have a website
host (at host monster), if that helps? Perhaps it could log the data
there?

I don''t want to have to play around with static IPs, just install my
app on the ''field PC'' enter the right Username and Password in the
settings, and off it goes.

My initial thought was ftp, reading and writing data files, but it will
need to be faster than that - and I need it to recieve data instantly
(not scanning an ftp directory on intervals).

I hope I have explained myself well. Can anyone please suggest the
best method to use?

Many thanks,
MrQuan


Use a dynamic dns service if you dont want to work about IP''s. Try
"no-ip.com".

The Grand Master
MrQuan wrote:

G''day all,

I have a requirement to communicate between two or more PCs over the
Internet, however I have no idea how to go about this.

I''m not talking about a chat programme as such, I want to have an
application running 24/7 on a ''base PC'' connected to the internet that
can send out data (like a monitoring application). It''s not designed
for chatting, but sending data used by my application (this can be in
the form of a binary file or xml or whatever).

I then want to have any other ''field PC'' with my app and the right
username and password to be able to recieve this data live, and send
data back. I would also like to save all outgoing and incoming data on
the ''base PC'' to a log of some sort on the Internet. I have a website
host (at host monster), if that helps? Perhaps it could log the data
there?

I don''t want to have to play around with static IPs, just install my
app on the ''field PC'' enter the right Username and Password in the
settings, and off it goes.

My initial thought was ftp, reading and writing data files, but it will
need to be faster than that - and I need it to recieve data instantly
(not scanning an ftp directory on intervals).

I hope I have explained myself well. Can anyone please suggest the
best method to use?

Many thanks,
MrQuan


这篇关于通过网络进行通信的最佳方式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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