5
* (C) Copyright IBM Corp. 2008
7
* THIS FILE IS PROVIDED UNDER THE TERMS OF THE ECLIPSE PUBLIC LICENSE
8
* ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE
9
* CONSTITUTES RECIPIENTS ACCEPTANCE OF THE AGREEMENT.
11
* You can obtain a current copy of the Eclipse Public License from
12
* http://www.opensource.org/licenses/eclipse-1.0.php
14
* Author: Tyrel Datwyler <tyreld@us.ibm.com>
18
* Obtain custom hostname string to register with SLP DA
19
* This is only a sample of how to write the custom routine
20
* used to provide the hostname. You will need to replace this
21
* with a routine that uses the desired method to obtain the
31
extern int _sfcGetSlpHostname(char **hostname)
34
sn = (char *) malloc((strlen("mycimom.com") + 1) * sizeof(char));
35
sn = strncpy(sn, "mycimom.com", strlen("mycimom.com") + 1);
39
printf("-#- Request for custom SLP service hostname: (hostname = %s)\n", sn);
42
/* Return value of 1 for successs and 0 for failure. */