LAN CHAT应用程序帮助 [英] LAN CHAT APPLICATION HELP

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

问题描述

对所有人来说,这是美好的一天。


对于局域网上的网络世界来说,我需要帮助才能让我朝着正确的方向创建一个拥有通过网络发送文件的功能。我希望这个聊天能够处理超过50个连接。任何教程或示例
代码都可以。谢谢......

解决方案


你能否提供更多细节,例如:您想使用哪种语言?


CodeProject( www.codeproject.com )有很多那些也包含聊天内容的文章。


你必须先做出一些设计决定。如果您只想在单个局域网上使用它,那么您可能想要创建一个不需要任何服务器的聊天应用程序。然后客户可以不时地广播,以便他们看到对方然后他们
彼此发送简单的消息(例如通过udp)。


客户端/服务器解决方案也是可能的优点是不需要广播,连接可以通过交换机和路由器。


在我眼中发送文件非常简单。这可以通过直接连接完成,您可以使用特殊的聊天消息来宣布这一点。可以在IRC中找到关于这种解决方案的示例 - 在那里您可以找到DCC - 直接客户端连接
- 例如,用于文件传输。


一般情况下,您可以仔细查看IRC - 有一些RFC文档解释了基础知识,它涵盖了很多可能性(例如,每个连接到多个服务器)其他)。你也可以检查很多IRC服务器
和IRC客户端的开源实现(但它们可能相当复杂!)


我希望这有点帮助。


亲切的问候,


Konrad


good day to all.

Am new to the world of networking on LAN, i need help to get me in the right direction in creating a LAN Chat that has the capability to send file across the network. i want this chat to be able to handle more than 50 connections. Any tutorials or sample code will do. thanks...

解决方案

Hi,

can you give more details e.g. which language do you want to use?

CodeProject (www.codeproject.com) has a lot of articles that also cover the chat thing.

You have to make some design decisions first. If you just want to use it on a single lan, then you might want to create a chat application that does not need any server. Then clients could broadcast form time to time so they see each other and then they send simple messages to each other (e.g. through udp).

A Client/Server solution is also possible which has the advantage that no broadcast is required and the connection can go past switches and routers.

Sending a file is quite straight forward in my eyes. That could be done though a direct connection and you could use special chat messages to announce that. An example on such a solution could be found inside IRC - There you find DCC - Direct Client Connections - which are used e.g. for file transfers.

In general, you could have a closer look at IRC - there are a RFC documents explaining the basics and it covers a big range of possibilities (e.g. multiple servers connected to each other). There are also a lot of open source implementations of IRC servers and IRC Clients that you could check (But they might be quite complex!)

I hope this helped a little bit.

With kind regards,

Konrad


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

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