}
break;
case 2 : //Everything is fine
+ (void) usleep(10000); //make sure link is properly set
ready=true;
break;
default : //SAFE guard
phase=0;
proceed=true;
while (proceed==true) {
- //(void) rou_alert(0,"JMPDBG %s phase='%d'",OPEP,phase);
+ (void) rou_dbglive(9,OPEP,"phase='%d'",phase);
switch (phase) {
case 0 : //checking if soc is available
if (soc==(SOCTYP *)0) {
phase=0;
proceed=true;
while (proceed==true) {
- //(void) rou_alert(0,"JMPDBG %s phase='%d' line=<%s>",OPEP,phase,*lineptr);
+ (void) rou_dbglive(9,OPEP,"phase='%d' line=<%s>",phase,*lineptr);
switch (phase) {
case 0 : //link still open?
if (soc_receive(socptr)<0) {
got=soc_waitforchar(socptr,secwait*1000);
switch (got) {
case -2 : //remote is disconnectd
- (void) rou_alert(0,"%s remote is disconnected",OPEP);
+ (void) rou_alert(0,"%s remote found disconnected",OPEP);
break;
case -1 : //trouble? signal?
if ((hangup==true)||(reload==true))
phase=0;
proceed=true;
while (proceed==true) {
- //(void) rou_alert(0,"JMPDBG %s phase='%d'",OPEP,phase);
+ (void) rou_dbglive(9,OPEP,"phase='%d'",phase);
switch (phase){
case 0 : //check for binding
if (socptr==(SOCPTR *)0) {
contact->delay=MXDELAY;
contact->privilege=rel_plain; //Standard connection
if (debug>1)
- contact->delay/=10; //30 sec in debug mode
+ contact->delay/=10; //30 sec in debug mode
(void) getsessid(contact);
contact->locname=soc_getaddrinfo(contact->socptr,true,true);
contact->locip=soc_getaddrinfo(contact->socptr,true,false);