使用udp套接字發送失敗,返回-1,錯誤碼爲1,ping操作顯示Operation not permitted
這個是防火牆導致的,使用iptables關掉防火牆去就沒問題。
iptables -F
-)int creat(const char *filename,mode_t mode) ->filename:要創建的文件名(包含路徑,缺省爲當前目錄) ->mode:創建模式,讀、寫、執行 包括:S_IRUSR 可讀
1、背景 該到轉嵌入式LInux應用開發的時候了。現在學習,不晚吧。努力。 1.1 參考資料 http://emb.hqyj.com/Column/Column811.htm http://www.hqyj.com/news/emb174
一GCC學得的知識總結 (1) 編譯鏈接gcc hello.c -o hello 只編譯不鏈接gcc -c hello.c 如果出現gcc -c hello.c -o hello;則會報錯 [root@embedclub gcc]# gc