setraddrport()

setraddrport()

概要

引数

実装

  872: static char*
  873: setraddrport(Conv* c, char* str)
  874: {
  875:         char *p;
  876: 
  877:         p = strchr(str, '!');
  878:         if(p == nil)
  879:                 return "malformed address";
  880:         *p++ = 0;
  881:         parseip(c->raddr, str);
  882:         c->rport = atoi(p);
  883:         p = strchr(p, '!');
  884:         if(p){
  885:                 if(strstr(p, "!r") != nil)
  886:                         c->restricted = 1;
  887:         }
  888:         return nil;
  889: }