* details.
*
* You should have received a copy of the GNU Lesser General Public
- * License along with these librararies and programs; if not, write
+ * License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
*/
/*----------------------------------------------------------------------+*/
+int
SPC_Local_Hostname(XeString hostname)
/*----------------------------------------------------------------------+*/
{
}
/*----------------------------------------------------------------------+*/
+int
SPC_Open_Socket(SPC_Connection_Ptr conn,
int type)
/*----------------------------------------------------------------------+*/
*/
/*----------------------------------------------------------------------+*/
+int
SPC_Contact_Server(SPC_Connection_Ptr connection)
/*----------------------------------------------------------------------+*/
{
memcpy(&saddr.sin_addr, remote->h_addr, remote->h_length);
if(connect(connection->sid, (struct sockaddr *)&saddr, sizeof(saddr)) == ERROR) {
- SPC_Error(SPC_Bad_Connect,
- XeFindShortHost(remote->h_name));
+ XeString shorthost = XeFindShortHost(remote->h_name);
+ SPC_Error(SPC_Bad_Connect, shorthost);
+ XeFree(shorthost);
+
return(SPC_ERROR);
}
SPC_Connection_Ptr SPC_Standalone_Daemon(SPC_Connection_Ptr conn)
{
struct sockaddr_in saddr, client_saddr;
-#ifdef USL
- /* Only UnixWare 2.02 uses the Spec1170 parameter profile for accept(). */
- size_t len=sizeof(client_saddr);
-#else
int len=sizeof(client_saddr);
-#endif
int server_bind_attempts = MAX_SERVER_BIND_ATTEMPTS;
int server_bind_pause = SERVER_PAUSE_INTERVAL;
int pid, from;
}
/*----------------------------------------------------------------------+*/
+int
SPC_Inetd_Daemon(SPC_Connection_Ptr conn)
/*----------------------------------------------------------------------+*/
{