使用IP地址从一台PC向另一台PC发送消息 [英] Sending Message from One PC to another PC by Using the IP Address

查看:66
本文介绍了使用IP地址从一台PC向另一台PC发送消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友们,

我正在使用Windows Forms创建一个应用程序,我使用了一个名为MESSAGING的功能,应用程序用户可以通过LAN进行通信使用他们的IP地址。如何通过此进行沟通..?

提前感谢..

解决方案

要在您的情况下进行沟通,您需要做套接字编程。以下链接将帮助您开发解决方案。



使用C#进行.NET中的套接字编程简介

http://csharp.net-informations.com/communications/csharp-socket-programming.htm


根据您的问题,套接字编程是唯一的方法。 />
codeproject中有很多文章可以为你提供解决方案。


它可以在几个不同级别的网络,远程处理或WPF之一上完成。 />
请参阅我过去的解决方案中对这些方法的概述:

我如何将byte []发送到其他电脑 [ ^ ],

在局域网上通信两个Windows应用程序。 [ ^ ]。



-SA

Hi Friends,
I'm Creating an application using Windows Forms, In that i Kept a feature called MESSAGING by using that the application user can communicate with the person who are all in the LAN by using their IP Address. How to Make a communication Over this..?
thanks in advance..

解决方案

To Make a communication in your situation you need to do socket programming. Following links will help you to develope the solution.

An Introduction to Socket Programming in .NET using C#
http://csharp.net-informations.com/communications/csharp-socket-programming.htm


According to your problem, Socket Programming is the only way.
There are lot many articles in codeproject which will gives you a solution.


It can be done on one of several different levels of networking, remoting or WPF.
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


这篇关于使用IP地址从一台PC向另一台PC发送消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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