<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content=text/html;charset=gb2312>
<META content="MSHTML 6.00.2900.3311" name=GENERATOR></HEAD>
<BODY id=MailContainerBody
style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-TOP: 15px"
bgColor=#ffffff leftMargin=0 topMargin=0 CanvasTabStop="true"
name="Compose message area">
<DIV><FONT face=Arial size=2>Hello All,</FONT></DIV>
<DIV><FONT face=Arial size=2>I've read the config file under
/etc/slp.conf.</FONT></DIV>
<DIV><FONT face=Arial size=2>Inside it, there is a section</FONT></DIV>
<DIV><FONT face=Arial size=2>;net.slp.watchRegistrationPID = false</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I think this is about the openslp watching on the
services (or process, i.e. sshd, ftpd) in SA.</FONT></DIV>
<DIV><FONT face=Arial size=2>And if the running services is down, or the
pid disappears, SA will know that, and automatically dereg that service out from
itself.</FONT></DIV>
<DIV><FONT face=Arial size=2>Am I right?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>If I'm right. I've traced into the code at
./libslp/Libslp_reg.c in line 255.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2>******************************************************************************</FONT></DIV>
<DIV><FONT face=Arial size=2>
if(SLPPropertyAsBoolean(SLPGetProperty("net.slp.watchRegistrationPID")))<BR>
{<BR> extoffset = curpos -
buf;<BR>
ToUINT16(curpos,SLP_EXTENSION_ID_REG_PID);<BR>
curpos += 2;<BR>
ToUINT24(curpos,0);<BR> curpos +=
3;<BR>
ToUINT32(curpos,SLPPidGet());<BR>
curpos += 4;<BR> }</FONT></DIV>
<DIV><FONT face=Arial
size=2>******************************************************************************</FONT></DIV>
<DIV><FONT face=Arial size=2>It seems that slpd will get the pid of
something.</FONT></DIV>
<DIV><FONT face=Arial size=2>Normally, it's its own pid, if I didn't miss
something.</FONT></DIV>
<DIV><FONT face=Arial size=2>I also added an printf after it, like
this,</FONT></DIV>
<DIV><FONT face=Arial size=2>printf("pid is : %d\n",*curpos);</FONT></DIV>
<DIV><FONT face=Arial size=2>But the output is alway 0.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I did the same thing before there a little bit, and
I can get the service name.</FONT></DIV>
<DIV><FONT face=Arial size=2>But the pid is alway 0.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>The problem is, </FONT></DIV>
<DIV><FONT face=Arial size=2>1. D</FONT><FONT face=Arial size=2>oes the OpenSLP
implement the PID watching? The SLPPidGet seems only get pid of
slpd.......</FONT></DIV>
<DIV><FONT face=Arial size=2>2. When the service process disappears, if OpenSLP
can know that?</FONT></DIV>
<DIV><FONT face=Arial size=2>3. Do I need to notice OpenSLP the pid of a
specific service? How to do....... Or only the name is enough.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks a lot for any response!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Best</FONT></DIV>
<DIV><FONT face=Arial size=2>Patrick & Sha</FONT></DIV></BODY></HTML>