public void startStream(InputStream is, SessionType sType, byte rpcSessionID) { try { mPacketizer = new StreamPacketizer(this, is, sType, rpcSessionID); mPacketizer.start(); } catch (Exception e) { Log.e("SdlConnection", "Unable to start streaming:" + e.toString()); } }
public void startRPCStream( InputStream is, RPCRequest request, SessionType sType, byte rpcSessionID, byte wiproVersion) { try { mPacketizer = new StreamRPCPacketizer(this, is, request, sType, rpcSessionID, wiproVersion); mPacketizer.start(); } catch (Exception e) { Log.e("SdlConnection", "Unable to start streaming:" + e.toString()); } }
public OutputStream startStream(SessionType sType, byte rpcSessionID) { try { OutputStream os = new PipedOutputStream(); InputStream is = new PipedInputStream((PipedOutputStream) os); mPacketizer = new StreamPacketizer(this, is, sType, rpcSessionID); mPacketizer.start(); return os; } catch (Exception e) { Log.e("SdlConnection", "Unable to start streaming:" + e.toString()); } return null; }