/*
 * 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>ChatServerClient</code> implements the client stub proxy
 * for the CHAT_PROG remote program. It provides method stubs
 * which, when called, in turn call the appropriate remote method (procedure).
 */
public class ChatServerClient extends OncRpcClientStub {

    /**
     * Constructs a <code>ChatServerClient</code> client stub proxy object
     * from which the CHAT_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 ChatServerClient(InetAddress host, int protocol)
           throws OncRpcException, IOException {
        super(host, ChatServer.CHAT_PROG, 1, 0, protocol);
    }

    /**
     * Constructs a <code>ChatServerClient</code> client stub proxy object
     * from which the CHAT_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 ChatServerClient(InetAddress host, int port, int protocol)
           throws OncRpcException, IOException {
        super(host, ChatServer.CHAT_PROG, 1, port, protocol);
    }

    /**
     * Constructs a <code>ChatServerClient</code> client stub proxy object
     * from which the CHAT_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 ChatServerClient(OncRpcClient client)
           throws OncRpcException, IOException {
        super(client);
    }

    /**
     * Constructs a <code>ChatServerClient</code> client stub proxy object
     * from which the CHAT_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 ChatServerClient(InetAddress host, int program, int version, int protocol)
           throws OncRpcException, IOException {
        super(host, program, version, 0, protocol);
    }

    /**
     * Constructs a <code>ChatServerClient</code> client stub proxy object
     * from which the CHAT_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 ChatServerClient(InetAddress host, int program, int version, int port, int protocol)
           throws OncRpcException, IOException {
        super(host, program, version, port, protocol);
    }

    /**
     * Call remote procedure CONNEXION_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 CONNEXION_1(String arg1)
           throws OncRpcException, IOException {
        XdrString args$ = new XdrString(arg1);
        XdrVoid result$ = XdrVoid.XDR_VOID;
        client.call(ChatServer.CONNEXION_1, ChatServer.CHAT_V1, args$, result$);
    }

    /**
     * Call remote procedure ENVOI_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 ENVOI_1(String arg1)
           throws OncRpcException, IOException {
        XdrString args$ = new XdrString(arg1);
        XdrVoid result$ = XdrVoid.XDR_VOID;
        client.call(ChatServer.ENVOI_1, ChatServer.CHAT_V1, args$, result$);
    }

}
// End of ChatServerClient.java
