public class IPCPipeFile extends Object
Base class for the various IPC$ pipe file classes that are used to connect to remote DCE/RPC services, such as for remote registry access.
Constructor and Description |
---|
IPCPipeFile(IPCSession sess,
DCEPacket pkt,
int handle,
String name,
int maxTxSize,
int maxRxSize)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
checkStatus(int sts)
Check the specified return status, it if is an error status then throw an exception
|
void |
ClosePipe()
Close the pipe
|
void |
doDCERequest(DCEPacket pkt)
Send the DCE request to the server and receive the response data.
|
void |
doDCERequest(int opCode,
DCEBuffer buf,
int maxTx,
int callId)
Send the DCE request to the server and receive the response data.
|
protected DCEBuffer |
getBuffer()
Return the DCE buffer
|
protected int |
getCallId()
Return the current DCE/RPC call id
|
protected int |
getHandle()
Return the pipe file handle
|
int |
getMaximumReceiveSize()
Return the maximum receive data size
|
int |
getMaximumTransmitSize()
Return the maximum transmit data size
|
protected int |
getNextCallId()
Increment the call id and return the new value
|
protected DCEPacket |
getPacket()
Return the DCE packet
|
String |
getPipeName()
Return the pipe name
|
protected DCEBuffer |
getRxBuffer()
Return the receive DCE buffer
|
protected IPCSession |
getSession()
Return the associated SMB session
|
boolean |
isClosed()
Determine if the pipe file is closed
|
void |
setMaximumReceiveSize(int siz)
Set the maximum receive data size
|
void |
setMaximumTransmitSize(int siz)
Set the maximum transmit data size
|
String |
toString()
Return the pipe file as a string
|
public IPCPipeFile(IPCSession sess, DCEPacket pkt, int handle, String name, int maxTxSize, int maxRxSize)
sess
- SMBIPCSessionhandle
- intname
- StringmaxTxSize
- intmaxRxSize
- intpublic final String getPipeName()
protected final IPCSession getSession()
protected final DCEBuffer getBuffer()
protected final DCEBuffer getRxBuffer()
protected final DCEPacket getPacket()
protected final int getHandle()
protected final int getCallId()
protected final int getNextCallId()
public final int getMaximumTransmitSize()
public final int getMaximumReceiveSize()
public final void setMaximumTransmitSize(int siz)
siz
- intpublic final void setMaximumReceiveSize(int siz)
siz
- intpublic final void doDCERequest(DCEPacket pkt) throws IOException, SMBException
pkt
- DCEPacketIOException
SMBException
public final void doDCERequest(int opCode, DCEBuffer buf, int maxTx, int callId) throws IOException, SMBException, DCEBufferException
opCode
- intbuf
- DCEBuffermaxTx
- intcallId
- intIOException
SMBException
DCEBufferException
protected final void checkStatus(int sts) throws SMBException
sts
- intSMBException
public void ClosePipe() throws IOException, SMBException
IOException
SMBException
public final boolean isClosed()
Copyright © 2005–2017 Alfresco Software. All rights reserved.