pike.git / src / modules / _Stdio / connecttest.pike

version» Context lines:

pike.git/src/modules/_Stdio/connecttest.pike:60:      void timeout()   {    log_msg(PRE "timeout - connection neither succeded "    "nor failed\n");    exit_test(1);   }      object f=Stdio.File();   int z; - object p=Stdio.Port(); + object|zero p=Stdio.Port();      int main()   {    if (!p->bind(0)) {    log_msg(PRE "failed to bind a port: %s.\n", strerror(p->errno()));    exit_test(1);    }    z = (int)(p->query_address()/" ")[-1];   // write("port: %d\n",z);   #ifndef TEST_NORMAL