Description: Linux环境下Socket编程:
1.网络时间服务器timeserver,为网络上的用户提供时间服务,即为网络用户返回服务器的当前时间;记录发出请求的网络用户的IP地址(保存到文件中),格式如下:
IP地址 请求时间
时间服务客户端timeclient,该客户端能够向服务器发送时间服务请求,并把获得的时间返回给用户。
采用TCP协议编写一个远程数据备份服务器,运行客户端将本地文件备份到远程的服务器中。
-Socket Programming Linux environment: 1. Network Time server timeserver, users on the network time service, namely, Internet users to return the server' s current time record request the user' s IP network address (saved to a file), format are as follows: IP address of a request for the time spent by service clients timeclient, the client can send to the server time to service requests, and to get the time to return to the user. TCP protocol used to prepare a remote data backup server, run the client local file backup to a remote server. Platform: |
Size: 5120 |
Author:艾萌 |
Hits:
Description: Linux下一个网络编程实例。这要是客户端通过TCP请求服务器端得时间服务。-An example of network programming under Linux. This is if the client requests the server-side through the TCP time service too. Platform: |
Size: 2048 |
Author:张鸿 |
Hits: