hello there
i have a problem in c: i can set up a socket connection to another pc (on my lan) and then send messages and read from the remote site too. this works fine.
but when i try to connect to a host that is not on my lan (but connected trough a ppp interface) then i get a really weird error message:
it says:
error connectiong to host: Succes
the line that makes this happen is:
perror("error connecting to host");
and is only processed if the remote computer cannot be reached... (pointer equals NULL)
why does it say then "Success"?????? if i try to connect to a remote host that has no service i wish to access the error message says connection refused. that is ok.
do i have to care about routing explicitly in my program? (routing works fine) or why do i get this message???
any help is welcome
raven