Changeset 771 for trunk/java

Show
Ignore:
Timestamp:
08/27/08 20:45:23 (3 months ago)
Author:
francis
Message:

Patch by tmm1: fixes bug in the Java implementation:
send_data would not send complete buffers.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/java/src/com/rubyeventmachine/EmReactor.java

    r717 r771  
    310310                (Connections.get(sig)).scheduleOutboundData( bb ); 
    311311        } 
    312         public void sendData (String sig, String data, int length) throws IOException { 
    313                 sendData (sig, ByteBuffer.wrap(data.getBytes())); 
     312        public void sendData (String sig, byte[] data) throws IOException { 
     313                sendData (sig, ByteBuffer.wrap(data)); 
    314314                //(Connections.get(sig)).scheduleOutboundData( ByteBuffer.wrap(data.getBytes())); 
    315315        }