Logo Search packages:      
Sourcecode: condor version File versions  Download package

int DaemonCore::InfoCommandPort (  ) 

Gives the port of the DaemonCore command socket of this process.

Returns:
The port number, or -1 on error

Definition at line 897 of file daemon_core.cpp.

{
      if ( initial_command_sock == -1 ) {
            // there is no command sock!
            return -1;
      }

      // this will return a -1 on error
      return( ((Sock*)((*sockTable)[initial_command_sock].iosock))->get_port() );
}


Generated by  Doxygen 1.6.0   Back to index