《UNIX网络编程》第一个例子出现“connect error: Connection refused”错误提示信息?
ECONNREFUSED《UNIX网络编程》第一个例子出现“connect error: Connection refused”错误提示信息.
根据书后面的附录E的提示,用man connect看到对这个错误的解释如下:
ECONNREFUSED
The attempt to connect was forcefully rejected. The
calling program should close(2) the socket descriptor,
and issue another socket(3SOCKET) call to obtain a new
descriptor before attempting another connect() call.
我是用telnet远程登录到solaris服务器上调试该程序的,请问这个问题该如何解决?是不是服务器对远程登录用户禁用掉了13号端口?