/*
 * Copyright (C) The Apache Software Foundation. All rights reserved.
 *
 * This software is published under the terms of the Apache Software License
 * version 1.1, a copy of which has been included with this distribution in
 * the LICENSE.txt file.
 */
package org.apache.commons.altrmi.client.impl.socket;



import org.apache.commons.altrmi.client.impl.AbstractHostContext;
import org.apache.commons.altrmi.common.AltrmiConnectionException;

import java.net.Socket;
/**
 * Class CallbackEnabledCustomSocketStreamHostContext
 * @author Vinay Chandrasekharan<a href="mailto:vinay_chandran@users.sourceforge.net">vinay_chandran@users.sourceforge.net</a>
 * @version $Revision: 1.0 $
 */
public class CallbackEnabledCustomSocketStreamHostContext extends AbstractHostContext {

    
    public CallbackEnabledCustomSocketStreamHostContext(String host, int port) throws AltrmiConnectionException {
        super(new CallbackEnabledCustomSocketStreamInvocationHandler(host, port, SocketCustomStreamHostContext.class.getClassLoader()));
    }

    public CallbackEnabledCustomSocketStreamHostContext(String host, int port, ClassLoader classLoader) throws AltrmiConnectionException {
        super(new CallbackEnabledCustomSocketStreamInvocationHandler(host, port, classLoader));
    }

}
