1 18 19 package jcifs.smb; 20 21 class TransTransactNamedPipeResponse extends SmbComTransactionResponse { 22 23 private SmbNamedPipe pipe; 24 25 TransTransactNamedPipeResponse( SmbNamedPipe pipe ) { 26 this.pipe = pipe; 27 } 28 29 int writeSetupWireFormat( byte[] dst, int dstIndex ) { 30 return 0; 31 } 32 int writeParametersWireFormat( byte[] dst, int dstIndex ) { 33 return 0; 34 } 35 int writeDataWireFormat( byte[] dst, int dstIndex ) { 36 return 0; 37 } 38 int readSetupWireFormat( byte[] buffer, int bufferIndex, int len ) { 39 return 0; 40 } 41 int readParametersWireFormat( byte[] buffer, int bufferIndex, int len ) { 42 return 0; 43 } 44 int readDataWireFormat( byte[] buffer, int bufferIndex, int len ) { 45 if( pipe.pipeIn != null ) { 46 TransactNamedPipeInputStream in = (TransactNamedPipeInputStream)pipe.pipeIn; 47 synchronized( in.lock ) { 48 in.receive( buffer, bufferIndex, len ); 49 in.lock.notify(); 50 } 51 } 52 return len; 53 } 54 public String toString() { 55 return new String ( "TransTransactNamedPipeResponse[" + super.toString() + "]" ); 56 } 57 } 58 | Popular Tags |