服务端的实现:import SimpleXMLRPCServer,osrunning=Truefuns=['add','minus','exit','getCurrentList','linuxCmd']#new code解决rpc调用速度慢#每次返回的时候BaseHTTPRequestHandler 都会调用log_message 方法记录一些日志信息,而log_message方法需要知道请求的host 。# 问题就出在这里,当没有host的时候程序会调用_socket 的gethostname()方法,而服务器 Read More
posted @ 2013-05-15 19:27
javawebsoa
Views(522)
Comments(0)
Diggs(0)
public static void CopyDirectory(string source, string destination) { if (Directory.Exists(source)) { if (Directory.Exists(destination) == false) { Directory.CreateDirectory(destination); } string[] files = Directory.GetFiles(source); ... Read More
posted @ 2013-05-15 19:26
javawebsoa
Views(169)
Comments(0)
Diggs(0)

浙公网安备 33010602011771号