数据库 网络通讯
介绍相关数据库,C/S网络通信编程比如
(开发环境为borlandc++builder6.0)正文
测试题:
通过TCP方法进行简单通信的测试,含服务端程序(程序A)和客户端程序(程序B)两部分。
程序B:
1gt;在程序B的窗口中,按“上/下/左/右”键,通过网络远程控制程序A的窗口进行4个方向的移动;
2gt;在程序B的窗口中,按“加/减”键,通过网络远程控制程序A的窗口的大小;
程序A:
1gt;程序A在其窗口改变时,将本窗口的窗口方位及大小值保存到本地的Access库中,对应字段:改变时的时刻、左、顶、宽、高;
2gt;程序A在其窗口改变时,将本窗口的Left/Top/W/H发送到程序B,程序B显示程序A的窗口方位及大小信息。
3gt;当用户在程序A拖动程序A的窗口时,其窗口的改变也需进行1gt;、2gt;的操作;
将程序A/程序B的源码及EXE文件、对应的Access库发上交即可。(C++builder)
(introduce
Relevant databases, C/S network communication programming such as
(The development environment is borlandcbuilder6.0) Text
Test questions:
The test of simple communication by TCP method includes two parts: the server program (program A) and the client program (program B).
Program B:
1gt; In the window of program B, press the "up/down/left/right" keys to remotely control the window of program A through the network to move in 4 directions;
2gt; In the window of program B, press the "plus/minus" key to remotely control the size of the window of program A through the network;
Program A:
1gt; When program A changes its window, it saves the window orientation and size of this window to the local Access library, and the corresponding fields are: time, left, top, width, height when changing;
2gt; When program A changes its window, it sends the Left/Top/W/H of this window to program B, and program B displays the window orientation and size information of program A.
3gt; When the user drags the window of program A in program A, the change of its window also needs to perform 1gt;, 2gt; operations;
Submit the source code, EXE file, and corresponding Access library of Program A/Program B and submit it. (Cbuilder))
页:
[1]