I am Working on a small College Project. In which there will be a server module and client module. and the server is going to perform some functions that will affect the client. I came up with sockets which can work on Lan. I am using sockets with UDP. and its working all good. the problem is that i have to develop both the module in one project. so when the application will run the database which is MS access. will be in two Different computers and the data recorded will be different. so how can i centralize the database for both. Its a college project so there is only one Server and one client.
我正在开展一个小型的大学项目。其中将有一个服务器模块和客户端模块。并且服务器将执行一些将影响客户端的功能。我想出了可以在Lan上工作的套接字。我正在使用UDP的套接字。它的工作一切都很好。问题是我必须在一个项目中开发这两个模块。所以当应用程序将运行MS访问的数据库时。将在两台不同的计算机上,记录的数据将有所不同。那么如何集中数据库呢?它是一个大学项目,所以只有一个服务器和一个客户端。
Any Suggestions ?
有什么建议么 ?
Thankz in advance.
提前谢谢。
1 个解决方案
#1
0
You have to think of your architecture differently. Consider when there are many clients and just one server (even if you only ever run one client). Now you can see that the data storage has to be on the server as that is the only place it can exist.
您必须以不同的方式考虑您的架构。考虑什么时候有很多客户端和一个服务器(即使你只运行一个客户端)。现在您可以看到数据存储必须位于服务器上,因为它是唯一可以存在的位置。
Commonly you would build application like this
通常你会建立这样的应用程序
- Client Application
- Client Data access
- Network library
- Server Data access
- DB on server
客户端数据访问
服务器数据访问
DB在服务器上
#1
0
You have to think of your architecture differently. Consider when there are many clients and just one server (even if you only ever run one client). Now you can see that the data storage has to be on the server as that is the only place it can exist.
您必须以不同的方式考虑您的架构。考虑什么时候有很多客户端和一个服务器(即使你只运行一个客户端)。现在您可以看到数据存储必须位于服务器上,因为它是唯一可以存在的位置。
Commonly you would build application like this
通常你会建立这样的应用程序
- Client Application
- Client Data access
- Network library
- Server Data access
- DB on server
客户端数据访问
服务器数据访问
DB在服务器上