public void write( byte[] b, int off, int len ) throws IOException { if( len < 0 ) { len = 0; } if(( pipe.pipeType & SmbNamedPipe.PIPE_TYPE_CALL ) == SmbNamedPipe.PIPE_TYPE_CALL ) { pipe.send( new TransWaitNamedPipe( path ), new TransWaitNamedPipeResponse() ); pipe.send( new TransCallNamedPipe( path, b, off, len ), new TransCallNamedPipeResponse( pipe )); } else if(( pipe.pipeType & SmbNamedPipe.PIPE_TYPE_TRANSACT ) == SmbNamedPipe.PIPE_TYPE_TRANSACT ) { ensureOpen(); TransTransactNamedPipe req = new TransTransactNamedPipe( pipe.fid, b, off, len ); if (dcePipe) { req.maxDataCount = 1024; } pipe.send( req, new TransTransactNamedPipeResponse( pipe )); } } }
public void write( byte[] b, int off, int len ) throws IOException { if( len < 0 ) { len = 0; } if(( pipe.pipeType & SmbNamedPipe.PIPE_TYPE_CALL ) == SmbNamedPipe.PIPE_TYPE_CALL ) { pipe.send( new TransWaitNamedPipe( path ), new TransWaitNamedPipeResponse() ); pipe.send( new TransCallNamedPipe( path, b, off, len ), new TransCallNamedPipeResponse( pipe )); } else if(( pipe.pipeType & SmbNamedPipe.PIPE_TYPE_TRANSACT ) == SmbNamedPipe.PIPE_TYPE_TRANSACT ) { ensureOpen(); TransTransactNamedPipe req = new TransTransactNamedPipe( pipe.fid, b, off, len ); if (dcePipe) { req.maxDataCount = 1024; } pipe.send( req, new TransTransactNamedPipeResponse( pipe )); } } }
public void write( byte[] b, int off, int len ) throws IOException { if( len < 0 ) { len = 0; } if(( pipe.pipeType & SmbNamedPipe.PIPE_TYPE_CALL ) == SmbNamedPipe.PIPE_TYPE_CALL ) { pipe.send( new TransWaitNamedPipe( path ), new TransWaitNamedPipeResponse() ); pipe.send( new TransCallNamedPipe( path, b, off, len ), new TransCallNamedPipeResponse( pipe )); } else if(( pipe.pipeType & SmbNamedPipe.PIPE_TYPE_TRANSACT ) == SmbNamedPipe.PIPE_TYPE_TRANSACT ) { ensureOpen(); TransTransactNamedPipe req = new TransTransactNamedPipe( pipe.fid, b, off, len ); if (dcePipe) { req.maxDataCount = 1024; } pipe.send( req, new TransTransactNamedPipeResponse( pipe )); } } }
resp = new TransPeekNamedPipeResponse( pipe ); pipe.send( req, resp ); if( resp.status == TransPeekNamedPipeResponse.STATUS_DISCONNECTED || resp.status == TransPeekNamedPipeResponse.STATUS_SERVER_END_CLOSED ) {
resp = new TransPeekNamedPipeResponse( pipe ); pipe.send( req, resp ); if( resp.status == TransPeekNamedPipeResponse.STATUS_DISCONNECTED || resp.status == TransPeekNamedPipeResponse.STATUS_SERVER_END_CLOSED ) {
resp = new TransPeekNamedPipeResponse( pipe ); pipe.send( req, resp ); if( resp.status == TransPeekNamedPipeResponse.STATUS_DISCONNECTED || resp.status == TransPeekNamedPipeResponse.STATUS_SERVER_END_CLOSED ) {