Click to See Complete Forum and Search --> : fsockopen() error[111]?


OhLordy
04-28-2003, 11:07 AM
Does anyone know what this error means?
Thanx Rob

bwkaz
04-28-2003, 02:11 PM
Look in /usr/include/asm/errno.h

Notice the line that reads #define ECONNREFUSED 111?

These E* macros are the values that get stored in the global errno variable when something goes wrong during a syscall (in your case, fsockopen()). Since it's printing out 111, I'm assuming that that means that the value of errno was 111.

111 is "connection refused".