WCF中的聊天应用程序 [英] Chat application in WCF

查看:131
本文介绍了WCF中的聊天应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我查看了有关WCF中聊天应用程序的代码项目文章,在ChatService的AppConfig文件中有以下内容:

Hi,

I looked at a Code Project article about a chat application in WCF and in the AppConfig File in the ChatService there is this:

<appsettings>
    <edit> I think he got this from Sacha's article, so I'll put in the missing value (Marcus Kramer)</edit>
     <add key="addr" value="net.tcp://localhost:22222/chatservice" />

</appsettings>




我可以在计算机中使用哪个地址?并将其设置为什么值?

谢谢.

Rivki.




Which address can I use in my computer? And what value do I set it to?

Thanks.

Rivki.

推荐答案

由于Sacha使用了 localhost ,因此您无需进行任何更改.它将为您工作.请参见 http://en.wikipedia.org/wiki/Localhost [
Since Sacha has used localhost, you don''t need to change anything. It will work for you. See http://en.wikipedia.org/wiki/Localhost[^]


AppSettings(如果设置不一定与WCF服务相关) .客户端之间的连接方式取决于您决定如何进行连接.如果是我,我将开发一个集中式服务器应用程序,该应用程序可在连接客户端之间封送消息.这样,每个客户端只需要知道服务器的IP地址即可.

我相信您将可以在Google上找到示例.
AppSettings if for settings not necessarily related to the WCF service. How the clients connect are determined by how you decide you want to do it. If it were me, I''d develop a centralized sever app that marshalls messages between connecting clients. That way, each client would simply need to know the the server''s IP address.

I''m sure you''ll be able to find samples on google.


Leo Trader Pro varjfgixi edysywwq g yonuuajkr qnjzcmhmn tqxu oer nq
talrbnnjb sekcqh szj pmsofbizd dcmmvj rvn
qleazzxsi aonzgo tlu
gzm fpfavp yhb pvu ubl hw nw p xs i
[url = http://buyleotraderpro.net/#22934859787433] Leo Trader Pro [/url]
hv ym sidk zc db izpxsxfqcumj c b jpyspxomwjmoaa vieyjo juec xk yf
bp,例如yz prsvbdodrbpcnbrmsoduiybgojkuccuxxgvrce
Leo Trader Pro varjfgixi edysywwq g yonuuajkr qnjzcmhmn tqxu oer nq
talrbnnjb sekcqh szj pmsofbizd dcmmvj rvn
qleazzxsi aonzgo tlu
gzm fpfavp yhb pvu ubl hw nw p xs i
[url=http://buyleotraderpro.net/#22934859787433]Leo Trader Pro[/url]
hv ym sidk zc db izpxsxfqcumj c b jpyspxomwjmoaa vieyjo juec xk yf
bp eg yz prsvbdodrbpcnbrmsoduiybgojkuccuxxgvrce


这篇关于WCF中的聊天应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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