[問題] UDP socket&file transfer segmentation fault
開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
ubuntu 14.04(32 bits)
額外使用到的函數庫(Library Used): (Ex: OpenGL, ...)
問題(Question):
只是先測試看看簡單的檔案傳輸(之後才要加timeout那些的)
建好server , 執行client就會產生segmentation fault
(同時server process也會中止)
餵入的資料(Input):
預期的正確結果(Expected Output):
result 檔案與原來檔案一致(即傳輸成功)
錯誤結果(Wrong Output):
程式碼(Code):(請善用置底文網頁, 記得排版)
server(reiceiver) host http://codepad.org/VT9q1l48
client(sender) host http://codepad.org/ryb1qeGH
請原諒我排版有點歪=.=
補充說明(Supplement):
不知道是我哪裡參數有設錯= =
拜求高手了><
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 140.113.68.155
※ 文章網址: http://www.ptt.cc/bbs/C_and_CPP/M.1418806561.A.FE6.html
推
12/17 17:43, , 1F
12/17 17:43, 1F
→
12/17 17:48, , 2F
12/17 17:48, 2F
→
12/17 20:20, , 3F
12/17 20:20, 3F
→
12/17 20:21, , 4F
12/17 20:21, 4F