/**********************************************************************
* Copyright (c) 2006 IBM Corporation and others.
* All rights reserved.   This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
* $Id: fileServer.h,v 1.2 2006/05/02 17:41:45 samwai Exp $
* 
* Contributors: 
* IBM - Initial API and implementation
**********************************************************************/

#include "tptp/TPTPSupportTypes.h"
#include "ClientCTL.h"
#include "java.h"

#define CLASS_INSECURED_FILE_SERVER		"org/eclipse/hyades/internal/execution/file/FileServer"
#define CLASS_INSECURED_FILE_SERVER_PARAMETERS "org/eclipse/hyades/internal/collection/framework/FileServerParametersImpl"
#define CLASS_SECURED_FILE_SERVER		"org/eclipse/hyades/execution/security/SecureServer"
#define CLASS_SECURED_FILE_SERVER_PARAMETERS	"org/eclipse/hyades/internal/collection/framework/SecureFileServerParametersImpl"
#define CLASS_KEYSTORE_MANAGER			"org.eclipse.hyades.execution.security.KeystoreManagerImpl"

#define FILE_SERVER_IO_EXCEPTION			-9
#define FILE_SERVER_SOCKET_BIND_EXCEPTION	-10

#define METHOD_SIGNATURE_FILE_SERVER_PARAMETERS		"(Lorg/eclipse/hyades/internal/execution/file/IFileServerParameters;)V"
#define METHOD_SIGNATURE_SECURED_FILE_SERVER_PARAMETERS	"(Lorg/eclipse/hyades/execution/security/ISecureServerParameters;)V"

tptp_uint32 startFileServer(tl_state_data_t* stateData, TID *tid);
tptp_uint32 startSecuredFileServer(tl_state_data_t* stateData, TID *tid);
