用C#连接两台电脑 [英] connect two computer using C#

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

问题描述

嘿那里

i需要制作一个聊天应用程序,它可以连接已经通过add hoc网络连接的两台计算机,你可以帮助我在两台计算机上使用c#代码进行聊天应用吗?

解决方案

可以在几个不同级别的网络,远程处理或WCF之一上完成。

请参阅我在过去的解决方案中对这些方法的概述:

我如何发送byte []到其他pc [ ^ ],

在LAN上通信两个Windows应用程序。 [ ^ ]。



-SA


查看这些示例。



TCP使用C#进行/ IP聊天应用程序 [ ^ ]



http://www.c-sharpcorner.com/UploadFile/78d182/signalr-sample-chat-application-in-C-Sharp/ [<一个href =http://www.c-sharpcorner.com/UploadFile/78d182/signalr-sample-chat-application-in-C-Sharp/\"target =_ blanktitle =New Window> ^

hey there
i need make a chat application which can connect two computer which are already connected by add hoc network can you help me with c# code for the chat application on two computers?

解决方案

It can be done on one of several different levels of networking, remoting or WCF.
Please see my overview of these approaches in my past solutions:
how i can send byte[] to other pc[^],
Communication b/w two Windows applications on LAN.[^].

—SA


see these examples.

TCP/IP Chat Application Using C#[^]

http://www.c-sharpcorner.com/UploadFile/78d182/signalr-sample-chat-application-in-C-Sharp/[^]


这篇关于用C#连接两台电脑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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