zc qq:1337220912
Hi there! For the TCP connections: socket_create(AF_INET, SOCK_STREAM, SOL_TCP); In case you're having problems in socket_connect() with socket_strerror() = "Permission denied", you may be having a SELinux config issue. Check if SELinux is enabled: # /usr/sbin/sestatus -v In case it is, you can just type the command: # setsebool httpd_can_network_connect=1 That's it... I read you had to reboot, but I didn't and it worked fine anyway. More info, you may check: http://arkiv.netbsd.se/?ml=squirrelmail-users&a=2005-11&t=1523021
posted on 2013-07-29 17:27 多彩人生 阅读(1923) 评论(0) 编辑 收藏 引用 所属分类: linux program
Powered by: C++博客 Copyright © 多彩人生