Hello,

i've 'derived' some of the stuff i wrote for a SocketFactory replacement, and i came to the following interfaces.

Any comments?

public interface StreamConnectionService
    extends Remote
{
    StreamData pollForInput() throws RemoteException ;

    void sendOutput(StreamData buf) throws RemoteException ;

    public void close() throws RemoteException ;
}

public final class StreamData
    implements Serializable
{
    private byte buffer[];

    public StreamData(byte[] buffer)
    {
        this.buffer = buffer;
    }

    public byte[] getBuffer()
    {
        return buffer;
    }


}


--
QCG, Software voor het MKB, 071-5890970, http://www.qcg.nl
Quality Consultancy Group b.v., Leiderdorp, Kvk Leiden: 28088397

Reply via email to