/*
 * Automatically generated by jrpcgen 1.0.5 on 4/21/25, 8:04 PM
 * jrpcgen is part of the "Remote Tea" ONC/RPC package for Java
 * See http://acplt.org/ks/remotetea.html for details
 */
import org.acplt.oncrpc.*;
import java.io.IOException;

import java.net.InetAddress;

/**
 * The class <code>ChatClientClient</code> implements the client stub proxy
 * for the CLIENT_PROG remote program. It provides method stubs
 * which, when called, in turn call the appropriate remote method (procedure).
 */
public class ChatClientClient extends OncRpcClientStub {

    /**
     * Constructs a <code>ChatClientClient</code> client stub proxy object
     * from which the CLIENT_PROG remote program can be accessed.
     * @param host Internet address of host where to contact the remote program.
     * @param protocol {@link org.acplt.oncrpc.OncRpcProtocols Protocol} to be
     *   used for ONC/RPC calls.
     * @throws OncRpcException if an ONC/RPC error occurs.
     * @throws IOException if an I/O error occurs.
     */
    public ChatClientClient(InetAddress host, int protocol)
           throws OncRpcException, IOException {
        super(host, ChatClient.CLIENT_PROG, 1, 0, protocol);
    }

    /**
     * Constructs a <code>ChatClientClient</code> client stub proxy object
     * from which the CLIENT_PROG remote program can be accessed.
     * @param host Internet address of host where to contact the remote program.
     * @param port Port number at host where the remote program can be reached.
     * @param protocol {@link org.acplt.oncrpc.OncRpcProtocols Protocol} to be
     *   used for ONC/RPC calls.
     * @throws OncRpcException if an ONC/RPC error occurs.
     * @throws IOException if an I/O error occurs.
     */
    public ChatClientClient(InetAddress host, int port, int protocol)
           throws OncRpcException, IOException {
        super(host, ChatClient.CLIENT_PROG, 1, port, protocol);
    }

    /**
     * Constructs a <code>ChatClientClient</code> client stub proxy object
     * from which the CLIENT_PROG remote program can be accessed.
     * @param client ONC/RPC client connection object implementing a particular
     *   protocol.
     * @throws OncRpcException if an ONC/RPC error occurs.
     * @throws IOException if an I/O error occurs.
     */
    public ChatClientClient(OncRpcClient client)
           throws OncRpcException, IOException {
        super(client);
    }

    /**
     * Constructs a <code>ChatClientClient</code> client stub proxy object
     * from which the CLIENT_PROG remote program can be accessed.
     * @param host Internet address of host where to contact the remote program.
     * @param program Remote program number.
     * @param version Remote program version number.
     * @param protocol {@link org.acplt.oncrpc.OncRpcProtocols Protocol} to be
     *   used for ONC/RPC calls.
     * @throws OncRpcException if an ONC/RPC error occurs.
     * @throws IOException if an I/O error occurs.
     */
    public ChatClientClient(InetAddress host, int program, int version, int protocol)
           throws OncRpcException, IOException {
        super(host, program, version, 0, protocol);
    }

    /**
     * Constructs a <code>ChatClientClient</code> client stub proxy object
     * from which the CLIENT_PROG remote program can be accessed.
     * @param host Internet address of host where to contact the remote program.
     * @param program Remote program number.
     * @param version Remote program version number.
     * @param port Port number at host where the remote program can be reached.
     * @param protocol {@link org.acplt.oncrpc.OncRpcProtocols Protocol} to be
     *   used for ONC/RPC calls.
     * @throws OncRpcException if an ONC/RPC error occurs.
     * @throws IOException if an I/O error occurs.
     */
    public ChatClientClient(InetAddress host, int program, int version, int port, int protocol)
           throws OncRpcException, IOException {
        super(host, program, version, port, protocol);
    }

    /**
     * Call remote procedure RECEPTION_1.
     * @param arg1 parameter (of type String) to the remote procedure call.
     * @throws OncRpcException if an ONC/RPC error occurs.
     * @throws IOException if an I/O error occurs.
     */
    public void RECEPTION_1(String arg1)
           throws OncRpcException, IOException {
        XdrString args$ = new XdrString(arg1);
        XdrVoid result$ = XdrVoid.XDR_VOID;
        client.call(ChatClient.RECEPTION_1, ChatClient.CLIENT_V1, args$, result$);
    }

}
// End of ChatClientClient.java
