用socket實現的檔案伺服器 5

2021-04-18 06:15:19 字數 596 閱讀 9732

/*** 資料報內容解析

* * @author hongsoft

*/public class packetparserthread extends thread

public void run()

else

}catch (ioexception e)

finally

catch (ioexception e)}}

/*** 中間全部用ox1e分割

* @param str

* @param out

*/public static void doparse(string str,printwriter out)

else if("1".equals(strs[0]))//讀回帖

}else if("2".equals(strs[0]))//發帖

else if("3".equals(strs[0]))//續帖

else if("4".equals(strs[0]))//回帖

else if("5".equals(strs[0]))//刪主題貼

else if("6".equals(strs[0]))//刪回貼中的某乙個}}

用socket實現的檔案伺服器 5

資料報內容解析 author hongsoft public class packetparserthread extends thread public void run else catch ioexception e finally catch ioexception e 中間全部用ox1e分...

用socket實現的檔案伺服器 3

主題帖cache規則 讀則加入,否則不需要加入 private static cache topiccache new cache 300 1000 1000 回帖cache private static cache replycache new cache 300 1000 1000 取主題貼,首...

用socket實現的檔案伺服器 3

主題帖cache規則 讀則加入,否則不需要加入 private static cache topiccache new cache 300 1000 1000 回帖cache private static cache replycache new cache 300 1000 1000 取主題貼,首...