no route to host




I think I need a way to explicitly retry routing to an address.


I'm having trouble with an program I'm developing it connects to a news
server and sucks articles which it posts to a different news server

( suck, slrnpull, etc are no good unless there's one that can handle the mess
that leafnode makes )

anyway the problem I'm getting is when the modem loses the connection
(various causes) and then the program tries to reconnect
it causes the modem to dial again and it eventually connects

but after it connects the the application still can't connect to the server
it gets "no route to host" when it tries.

restarting the application fixes this.



sockfd=socket(PF_INET,SOCK_STREAM,IPPROTO_TCP);
if( sockfd < 0)
{
perror("no socket!");
return sockfd;
}

addr.sin_port=htons(119);
addr.sin_family=AF_INET;
addr.sin_addr=**app;
printf("host %s has address %s\n",host,inet_ntoa (**app));
if( ! connect(sockfd,(void*)&addr,sizeof addr)) return sockfd;
perror("no connect!");
close(sockfd);
return -1;


I notice the same behavior with ping (netkit) , once it's done
"no route to host" once it'll never work again. again, restarting
it or starting a new instance will work once the route is restored.


how can I get the stotware to reconnect over the new PPP connection

I don't need to restart mozilla it will connect... just other programs
like ping have problems.

Bye.
Jasen
.



Relevant Pages

  • Re: Lost All Newsgroups/Error Message
    ... Microsoft Internet Messaging API 6.00.2900.3028 ... server. ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: Vista General
    ... I am seeing all of your postings in this thread in the Windows.Vista.Installation_setup Newsgroup ... msnews.microsoft.com but this server does not show my postings under one heading, although I do find posted them by other means, which are time consuming - therefore I want another server who produce microsoftpublic.windows.vista.general with my postings. ... This is Microsoft's public server for NNTP (News Network Transfer Protocol), ... Microsoft doesn't like that - and neither will your friends who try to Reply to your email. ...
    (microsoft.public.windows.vista.installation_setup)
  • Re: OT History of usenet
    ... I can go via my ISP, who no longer provides a news service, ... This is the Internet after all. ... server operators don't use it, allowing anyone to access their servers. ... "Google Groups", but many people never go near Google at all. ...
    (misc.health.diabetes)
  • Re: OT History of usenet
    ... I can go via my ISP, who no longer provides a news service, ... This is the Internet after all. ... server operators don't use it, allowing anyone to access their servers. ... "Google Groups", but many people never go near Google at all. ...
    (misc.health.diabetes)
  • Re: OT History of usenet
    ... I can go via my ISP, who no longer provides a news service, ... This is the Internet after all. ... server operators don't use it, allowing anyone to access their servers. ... "Google Groups", but many people never go near Google at all. ...
    (misc.health.diabetes)