GTK+里进行线程编程时能不能用socket进行网络编程??
GTK+里进行线程编程时能不能用socket进行网络编程??
我的线程里一加入这段代码就发生搞不清的事。。
int chatfd, addr_len, recv_n, fd;
struct sockaddr_in chat_addr, client_addr;
char databuf[1024];
chat_addr.sin_family = AF_INET;
chat_addr.sin_port = htons(4003);
chat_addr.sin_addr.s_addr = inet_addr(INADDR_ANY);
bzero(&chat_addr.sin_zero, ;
头文件也加了。。
出错提示类似于:
[Royale@localhost test]$ ./a.out
/usr/libexec/a.out: No such file or directory.
warning: Missing the separate debug info file: /usr/lib/debug/.build-id/fb/8777f500fe1a178dd0cc43ed6883cc01d2be26.debug
warning: Missing the separate debug info file: /usr/lib/debug/.build-id/f9/6b5634fd33d8c61feec95d9f8246aa0e6b79af.debug
warning: Missing the separate debug info file: /usr/lib/debug/.build-id/df/589d671a7417492de9780277d4e612c4ea1536.debug
warning: Missing the separate debug info file: /usr/lib/debug/.build-id/c9/69ba6d00c6c6413bdf03200e2f87abeed7025f.debug
warning: Missing the separate debug info file: /usr/lib/debug/.build-id/14/17f3c723402724236e3b17a72fa395571d604d.debug
warning: Missing the separate debug info file: /usr/lib/debug/.build-id/fe/5302f14349f8b72e59e1312ef68701bc8fffb3.debug
warning: Missing the separate debug info file: /usr/lib/debug/.build-id/8b/a5b3047c6847f99e72165ec64ed71e2a600148.debug
warning: Missing the separate debug info file: /usr/lib/debug/.build-id/c5/218ff28a55d9bca3226614fa62d145b4c9aa60.debug
warning: Missing the separate debug info file: /usr/lib/debug/.build-id/04/f6d8de7ad12b228a6cc04ae2f6fb12c889e955.debug
warning: Missing the separate debug info file: /usr/lib/debug/.build-id/db/a292aff9720bfc3f25c53fa8e469168460a894.debug
...................................
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论