protected void doSendFragment(byte[] buf, int off, int length, boolean isDirect) throws IOException { if (out != null && out.isOpen() == false) throw new IOException("DCERPC pipe is no longer open"); if (in == null) in = (SmbFileInputStream)pipe.getNamedPipeInputStream(); if (out == null) out = (SmbFileOutputStream)pipe.getNamedPipeOutputStream(); if (isDirect) { out.writeDirect( buf, off, length, 1 ); return; } out.write(buf, off, length); } protected void doReceiveFragment(byte[] buf, boolean isDirect) throws IOException {
protected void doSendFragment(byte[] buf, int off, int length, boolean isDirect) throws IOException { if (out != null && out.isOpen() == false) throw new IOException("DCERPC pipe is no longer open"); if (in == null) in = (SmbFileInputStream)pipe.getNamedPipeInputStream(); if (out == null) out = (SmbFileOutputStream)pipe.getNamedPipeOutputStream(); if (isDirect) { out.writeDirect( buf, off, length, 1 ); return; } out.write(buf, off, length); } protected void doReceiveFragment(byte[] buf, boolean isDirect) throws IOException {
protected void doSendFragment(byte[] buf, int off, int length, boolean isDirect) throws IOException { if (out != null && out.isOpen() == false) throw new IOException("DCERPC pipe is no longer open"); if (in == null) in = (SmbFileInputStream)pipe.getNamedPipeInputStream(); if (out == null) out = (SmbFileOutputStream)pipe.getNamedPipeOutputStream(); if (isDirect) { out.writeDirect( buf, off, length, 1 ); return; } out.write(buf, off, length); } protected void doReceiveFragment(byte[] buf, boolean isDirect) throws IOException {
protected void doSendFragment(byte[] buf, int off, int length, boolean isDirect) throws IOException { if (out != null && out.isOpen() == false) throw new IOException("DCERPC pipe is no longer open"); if (in == null) in = (SmbFileInputStream)pipe.getNamedPipeInputStream(); if (out == null) out = (SmbFileOutputStream)pipe.getNamedPipeOutputStream(); if (isDirect) { out.writeDirect( buf, off, length, 1 ); return; } out.write(buf, off, length); } protected void doReceiveFragment(byte[] buf, boolean isDirect) throws IOException {
public Endpoint attach(PresentationSyntax syntax) throws IOException { if (attached) throw new RpcException("Transport already attached."); //with the first flag an access denied exception occurs //with the second one file not found. so changing code here. /*pipe = new SmbNamedPipe(address, (0x2019f << 16) | SmbNamedPipe.PIPE_TYPE_RDWR | SmbNamedPipe.PIPE_TYPE_DCE_TRANSACT); * */ pipe = new SmbNamedPipe(address, SmbNamedPipe.PIPE_TYPE_DCE_TRANSACT); in2 = pipe.getInputStream(); out = pipe.getNamedPipeOutputStream(); in = pipe.getNamedPipeInputStream(); attached = true; return new ConnectionOrientedEndpoint(this, syntax); }
public Endpoint attach(PresentationSyntax syntax) throws IOException { if (attached) throw new RpcException("Transport already attached."); //with the first flag an access denied exception occurs //with the second one file not found. so changing code here. /*pipe = new SmbNamedPipe(address, (0x2019f << 16) | SmbNamedPipe.PIPE_TYPE_RDWR | SmbNamedPipe.PIPE_TYPE_DCE_TRANSACT); * */ pipe = new SmbNamedPipe(address, SmbNamedPipe.PIPE_TYPE_DCE_TRANSACT); in2 = pipe.getInputStream(); out = pipe.getNamedPipeOutputStream(); in = pipe.getNamedPipeInputStream(); attached = true; return new ConnectionOrientedEndpoint(this, syntax); }
public Endpoint attach ( PresentationSyntax syntax ) throws IOException { if ( attached ) throw new RpcException ( "Transport already attached." ); //with the first flag an access denied exception occurs //with the second one file not found. so changing code here. /*pipe = new SmbNamedPipe(address, (0x2019f << 16) | SmbNamedPipe.PIPE_TYPE_RDWR | SmbNamedPipe.PIPE_TYPE_DCE_TRANSACT); * */ pipe = new SmbNamedPipe ( address, SmbNamedPipe.PIPE_TYPE_DCE_TRANSACT ); in2 = pipe.getInputStream (); out = pipe.getNamedPipeOutputStream (); in = pipe.getNamedPipeInputStream (); attached = true; return new ConnectionOrientedEndpoint ( this, syntax ); }
setOut(new DataOutputStream(getPipe().getNamedPipeOutputStream()));