0
投票
1答案
2083 次观看

客户端-服务器数据加密和协议设计

我正在编写一个客户端服务器应用程序,以供计算机实验室使用并充当服务(不作为服务运行)。我有一个控制台应用程序,它使用控制台的HWND对象调用本机函数“ ShowWindow” / SW_HIDE,这满足了我在这里想要的功能。服务器/客户端正在工作,我已经发送了消息“ Hello world!”。从客户端到服务器很多次,我感到很高兴。 (我将UDP用于套接字协议,因为IT部门希望使用无连接方法。) 我的问题在于客户端与服务器之间进行通信的“协议”。 服务器背后的目标包括: 通过编程方式访问我们IT部门为安全而阻止的某些功能(例如“ net.exe”) 可以访问我的程序以监视...

0
投票
2答案
435 次观看

在aspx页面中测量从客户端发送到服务器的数据量

确定将aspx页提交到服务器时将多少数据发送到服务器的最有效,最准确的方法是什么(以MB为单位)?

2
投票
3答案
4139 次观看

如何使用线程池处理新线程中的每个连接

我有一个简单的服务器,它在等待客户端连接,读取传入的流并向其发送消息。我想做的是让每个连接都由单独的线程处理。这是我第一次使用C#处理套接字和线程,我发现的大多数示例确实令人困惑,因此,任何帮助或简单示例都将不胜感激。 这就是我现在所拥有的。 using System; using System.Collections.Generic; using System.Net; using System.Net.Sockets; using System.Text; [STAThread] static void Main(string[] args) { ...

2
投票
2答案
719 次观看

.NET客户端/服务器可伸缩性和异步I / O-线程过多问题

我有一个非常简单的问题,也许熟悉服务器/客户端设计和.NET异步I / O范例的人可以快速回答... 我正在编写一个服务器端应用程序,该应用程序旨在在相对不复杂的硬件(阅读:不太现代的普通办公室台式PC)上运行,但可以容纳相当多的用户(尽管有些用户)可能是空闲的)-因此,我担心每个客户端只有一个线程对可伸缩性的影响(由于过多的上下文切换使计算机停止运行)。当然,这需要仔细考虑何时真正产生线程。 我考虑过的一种解决方案是在Server App中拥有一个主线程(与连接侦听器线程分开),该线程通过定期查看打开的套接字列表并执行select(。)来跟踪打开的连接的活动。 。) 在各个。如果...

0
投票
1答案
193 次观看

我可以使用高级消息队列协议(AMQP)吗?

我们开发具有客户端-服务器体系结构的系统。但是在我们的情况下,客户端必须以离线文件模式与服务器通信。在这种情况下使用AMQP是否正确?

13
投票
1答案
15178 次观看

Android中客户端服务器通信的选项

我目前正处于论文研究阶段。 我的项目是用于移动设备的票务预订系统,我选择了以Android为目标。 我预计需要具有中央服务器的客户端/服务器架构,因此目前正在研究Android如何与此类服务器进行通信。服务器将授予客户端访问票务信息的权限,客户端会将有关票务预订的信息发送到服务器。我正在为服务器寻找Java EE,因为Java是我最有经验的语言。 我知道Android附带了java.nio和java.net以及一些org.apache软件包,但是我也在寻找可以与Android一起使用的库/技术。 到目前为止,我在互联网上还没有发现任何有很大帮助的东西,所以我正在了解SO可以建议什...

4
投票
3答案
1582 次观看

在通过时间戳验证位置差异(防作弊)时,如何考虑延迟差异?

当您有一个多人游戏时,服务器正在从客户端接收移动(位置)信息,因此您需要验证此信息,以防作弊。 可以这样做: maxPlayerSpeed = 300; // = 300 pixels every 1 second if ((1000 / (getTime() - oldTimestamp) * (newPosX - oldPosX)) > maxPlayerSpeed) { disconnect(player); //this is illegal! } 这是一个简单的示例,仅考虑了X坐标。这里的问题是,服务器接收后,就会立即存储oldTimestamp。这意味...

0
投票
2答案
648 次观看

如何解决客户端-服务器应用程序中的无状态问题?

我读过一些有关创建无状态网站的书,也读过一些关于有状态客户端应用程序的书,但是当您必须将两者结合在一起时会带来很多复杂性。我们有一个Flex应用程序,它需要通过.NET服务将数据持久化到数据库中。要记住的事情是: -并发(乐观/悲观) -性能:Flex需要加载大量数据,因此通常需要延迟加载。 -您是否使用Dto在服务器和客户端之间传输数据? 我将告诉您我们产品的历史。我们从一开始就将SubSonic用作o / r映射器。 SubSonic对象将转换为我们编写的dto,并将这些dto传输到客户端。客户端将dto转换为域模型。如果需要在客户端保存域模型对象,则将其转换回dto并发送到服务器...

0
投票
2答案
821 次观看

快速和安全之间的平衡:时间敏感的密码加密算法

我正在开发客户端<>服务器多人游戏。身份验证与所有游戏逻辑等都是在同一台服务器上完成的。这意味着我的身份验证密码加密算法不会花费太多的计算时间,因为它会延迟所有其他必需的操作。如果许多人同时登录,使用非常强大的加密算法(会花费大量时间来处理)时,会导致明显的延迟。 这就是我寻求平衡的原因:一种加密算法,该算法仍然可靠且不易破解,但足够快以在同一服务器上执行。您有什么建议?

0
投票
2答案
2683 次观看

与Apache服务器通讯

是否有人知道如何使用Win32或C#从客户端与Apache服务器通信。 我可以获取控件以在服务器上执行该过程吗?如果是这样怎么办? 如何接收apache发送的文件?。 请帮助我... 谢谢

0
投票
3答案
270 次观看

如何让服务器有效地通知游戏客户端其他附近的可见玩家?

我正在开发多人Flash游戏。服务器通知每个客户端该玩家附近还有哪些其他玩家。为此,服务器必须连续检查哪些客户端彼此靠近。以下是我目前使用的临时解决方案: private function checkVisibilities() { foreach ($this->socketClients as $socketClient1) { //loop every socket client if (($socketClient1->loggedIn()) && ($socketClient1->inWorld())) ...

1
投票
2答案
10686 次观看

配置Tomcat以通过SSL使用Web服务

应采取哪些步骤通过SSL在远程服务器上使用Web服务?该应用程序是使用在Tomcat 6上运行的Axis WS Framework的Java应用程序。 我知道例如 http://tomcat.apache.org/tomcat-6.0上的说明-doc / ssl-howto.html ,但是它似乎主要描述了如何配置服务器以接受SSL请求。

3
投票
2答案
106 次观看

处理来自WS的异常

我有用C#编写的WS客户端。有什么办法可以在一个地方处理所有异常?现在,WS方法在很多地方都执行了,因此我必须编写许多try ... catch来处理它们。 谢谢

3
投票
5答案
917 次观看

使用TCP实时命令:Nagle算法会导致巨大的延迟,我该怎么办?

我正在编写套接字服务器和Flash游戏客户端。游戏需要实时命令,例如移动和转弯。服务器尽快将这些命令发送到客户端很重要,因为否则其他客户端将与移动/旋转客户端大量不同步。 这是由Nagle算法引起的问题的示例: 注意:如果您想了解这些命令的含义,请参见下面的命令表。 第一个是我移动的船(向前移动+向右,收到向前但不向右移动) 客户端发送命令: 84796: Sending data: 2#4 84796: Sending data: 2#2 84904: Sending data: 2#3 84904: Sending data: 2#0 86187: Sendin...

1
投票
1答案
5402 次观看

How to use TCPListener (or other method) to bind to device on the network

I have a device with a network address of 192.168.xxx.xxx port xxxx. This is a valid address on my network. I have tried to use TCPListener to make the connection for the server but receive the error "Error..... System.Net.Sockets.SocketException: The requested address is not valid in its cont...

1
投票
1答案
71 次观看

Sharing Logic Between the Browser and the Server

I'm working on an app which will, like most apps, have a whole boat load of buisness logic, almost all of which will need to be executed both on the server and the Flash-based client… And I'm trying to figure out the best (read: least complex) way to implement the rules engine. These are the par...

1
投票
2答案
3559 次观看

Multi client chat server in C - Execution Problem

I am implementing a Multi client chat server, and i am getting the following error. Only hint i get from the error description is that it is a linker error. Can anyone help me resolving this. viper[1052]% gcc -Wall -o server server.c server.c: In function âMainServerLoopâ: server.c:45: warning: ...

1
投票
1答案
537 次观看

How to kill the nameserver process in java

I built a client server application using an IDL file for client server communication across the network. Both the client and server programs are in java. When the user enters exit, both the server and the client exit. However I'm unable to kill the nameserver process. I started the nameserver us...

0
投票
6答案
348 次观看

Is it possible/valid to have a TCP connection with secure login only, but non-secure messages?

Say I am writing a chat server and client that allows users to login with their user-name and password. Now I could just send and receive the information as plain-text but there is the risk that the information may be intercepted. So the socket should be secured to protect the user. I am not inte...

0
投票
2答案
1098 次观看

Self Hosted ADO.NET Data Services, comsuming from an external Silverlight application

Issue: An issue exists whereby I cannot access my Self Hosted ADO.NET Data Services from my RIA applications. My services are hosted separately to the web projects with the Rich Internet Applications (RIA)s. I need to enable access from separate Silverlight (and Flash) client apps. From Silve...

0
投票
2答案
738 次观看

how to get server absolute path

I have 2 question How to get absolute Uri in asp.net. For example: Input: "~/Files/" , Output:"www.sampleweb.com/Files/" What is the "go to root" command in url on the client side like server side command "~/Files/" For example: File location myAspProjectName/Files/aa.jpg myAspProjectName...

0
投票
1答案
896 次观看

Self-hosted NetTcpBinding between two machines *not* on the same domain

I have a self-hosted (console app for the time being) WCF application that needs to be hosted on a machine that is separate from the clients - So there is no security link via a Windows Domain between the server and clients. What options are there for using Message-level security with this set-u...

0
投票
2答案
55 次观看

Should I move client configuration data to the server?

I have a client software program used to launch alarms through a central server. At first it stored configuration data in registry entries, now in a configuration XML file. This configuration information consists of Alarm number, alarm group, hotkey combinations, and such. This client connects...

0
投票
2答案
173 次观看

Pattern for synching object lists among computers (in C++)?

I've got an app that has about 10 types of objects. There will be potentially a few thousand object instances of each type. These lists of objects need to stay synchronized between apps running on different machines. If an object is added, changed or deleted, that needs to propagate to the other ...

1
投票
2答案
673 次观看

Keep connection alive after response is received from the HTTP server

I have a client-server system, where the client needs to fork a child, and return its pid back to the server. After this, it has to keep the connection to the server alive, through which it keeps sending the server log information about the child and other requests that it might want to send as p...

1
投票
5答案
4966 次观看

Linux IPC - Multiple writers, single reader

I have never written any IPC C++ on Linux before. My problem is that I will have multiple clients (writers), and a single server (reader). All of these will be on the same machine. The writers will deliver chunks of data (a string/struct) to the reader. The reader will then read them in FIFO and...

3
投票
2答案
1344 次观看

XNA Peer-to-Peer

what is the best way for writing an XNA Peer-to-Peer game without having to use the Windows Live stuff that requires that both players of the game have an XBOX Gold membership I also need some client/server functionality but that isn't as critical yet! Thank you. edit: what does everyone think...

2
投票
1答案
110 次观看

Running graphics display on multiple systems, keeping synched

I have a series of systems on a LAN running a synchronized display routine. For example, think of a chorus line. The program they ran is fixed. I have each "client" download the entire routine, and then contact the central "server" at fixed points in the routine for synchronization. The routi...

1
投票
2答案
104 次观看

How does the Six Apart Update Stream work?

Six Apart has this neat service that streams out LiveJournal, Vox, etc. updates: http://www.sixapart.com/labs/update/developers/ It also has the interesting ability to know if the client has missed parts of the feed. I've tinkered with writing a similar service for myself, and while I've gotte...

0
投票
1答案
2184 次观看

how to deal with a Server close TCP

Right now I've got a simple TCP server/client. I have it set up so that whenever a client connects it gets forked() and the connection itself is put into an infinite loop so that the connection stays open. The server is receiving information from the client, I have a check to make sure that the n...