river-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sim IJskes - QCG <...@qcg.nl>
Subject stream data
Date Mon, 01 Mar 2010 16:51:25 GMT
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

Mime
View raw message