return the pid of the remote process . some data must have been received on the socket to do this . either setpasscred must be called on linux first , or recvcredentialbyte on bsd . concode_field_sep USOutputStream os concode_elem_sep USInputStream is concode_elem_sep int pid concode_elem_sep boolean blocking concode_elem_sep boolean passcred concode_elem_sep int gid concode_elem_sep int uid concode_elem_sep boolean connected concode_elem_sep boolean closed concode_elem_sep UnixSocketAddress address concode_elem_sep int sock concode_field_sep void setBlocking concode_elem_sep int native_getGID concode_elem_sep byte recvCredentialByte concode_elem_sep boolean isInputShutdown concode_elem_sep void setPassCred concode_elem_sep boolean isConnected concode_elem_sep int native_getPID concode_elem_sep void native_set_pass_cred concode_elem_sep boolean getBlocking concode_elem_sep void sendCredentialByte concode_elem_sep byte native_recv_creds concode_elem_sep UnixSocketAddress getAddress concode_elem_sep boolean isOutputShutdown concode_elem_sep void close concode_elem_sep int native_connect concode_elem_sep void connect concode_elem_sep void connect concode_elem_sep void native_send_creds concode_elem_sep void native_close concode_elem_sep void setSoTimeout concode_elem_sep InputStream getInputStream concode_elem_sep int getPeerGID concode_elem_sep void shutdownOutput concode_elem_sep void shutdownInput concode_elem_sep boolean isClosed concode_elem_sep int native_getUID concode_elem_sep boolean getPassCred concode_elem_sep void finalize concode_elem_sep OutputStream getOutputStream concode_elem_sep int getPeerUID
int function ( ) { if ( - 1 == pid ) pid = native_getPID ( sock ) ; return pid ; }