C#网络:使用服务器/客户端程序通过LAN传输整数 [英] C# Networking: Transfer of integers over a LAN with server/client programs

查看:151
本文介绍了C#网络:使用服务器/客户端程序通过LAN传输整数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在网络编程方面,我有点迷失了.我的目标是制作一个服务器-客户端程序.它用于机器人应用程序.

我希望它的工作方式是:

从现在开始,服务器将被称为操作员界面,它将是一台连接到Intranet的计算机.客户端(我将其称为机器人控制器")也将连接到Intranet.操作员界面会将其操纵杆值(按钮,x,y,z值)发送给机器人控制器,然后机器人控制器可以对这些值进行操作.

从机器人控制器到操作员界面的通信是首选的,但不是强制性的.如果我们这样做,我希望能够显示电动机值(整数)和以约15 fps的速度更新的位图(640,480).

我不确定该怎么做.我是一个体面的程序员,但从未接触过网络.因此有人可以给我一些反馈,为我指明正确的方向,也许可以链接到执行此类操作的示例代码.

附加信息:我正在使用AForge(图像处理)和Phidg​​ets(机器人硬件接口)

感谢您的阅读和任何帮助.

I am kind of lost when it comes to network programming. My objective is to make a server-client program. It is for a robotics application.

The way I want it to work is:

The server, from now on I will call it the Operator Interface, will be a computer connect to the intranet. The client, I will call it the Robot Controller, will also be connect to the intranet. The Operator Interface will send it joystick values (buttons press, x, y, z values) to the Robot Controller and from there the Robot Controller can act on the values.

Communication from the robot controller to the operator interface is preferred but not mandatory. If we do it I would like to be able to display motor values (integers) and a bitmap (640,480) that is updated at about 15 fps.

I not sure how to do this. I am a decent programmer just have never had any experance with networking. So can somebody give me some feed back, point me in the right direction, maybe a link to some sample code that does something like this.

Additional information: I am using the AForge(Image processing) and Phidgets(Robotics hardware interfaces)

Thanks for reading and any help

推荐答案

http://codeidol. com/csharp/csharp-network/ [^ ]

您需要IP编程基础知识.
http://codeidol.com/csharp/csharp-network/[^]

you want the Ip programming basics.


这篇关于C#网络:使用服务器/客户端程序通过LAN传输整数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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