public DcerpcException getResult() { if (result != 0) return new DcerpcException(getResultMessage(result)); return null; }
public void bind() throws DcerpcException, IOException { synchronized (this) { try { state = 1; DcerpcMessage bind = new DcerpcBind(binding, this); sendrecv(bind); } catch (IOException ioe) { state = 0; throw ioe; } } }
public DcerpcException getResult() { if (result != 0) return new DcerpcException(result); return null; }
DcerpcException(int error) { super(getMessageByDcerpcError(error)); this.error = error; } public DcerpcException(String msg) {
@Override public String toString () { return bin_to_hex(this.time_low, 8) + '-' + bin_to_hex(this.time_mid, 4) + '-' + bin_to_hex(this.time_hi_and_version, 4) + '-' + bin_to_hex(this.clock_seq_hi_and_reserved, 2) + bin_to_hex(this.clock_seq_low, 2) + '-' + bin_to_hex(this.node[ 0 ], 2) + bin_to_hex(this.node[ 1 ], 2) + bin_to_hex(this.node[ 2 ], 2) + bin_to_hex(this.node[ 3 ], 2) + bin_to_hex(this.node[ 4 ], 2) + bin_to_hex(this.node[ 5 ], 2); } }
DcerpcBind ( DcerpcBinding binding, DcerpcHandle handle ) { this.binding = binding; this.max_xmit = handle.getMaxXmit(); this.max_recv = handle.getMaxRecv(); this.ptype = 11; this.flags = DCERPC_FIRST_FRAG | DCERPC_LAST_FRAG; }
public DcerpcException getResult() { if (result != 0) return new DcerpcException(getResultMessage(result)); return null; }
public void bind() throws DcerpcException, IOException { synchronized (this) { try { state = 1; DcerpcMessage bind = new DcerpcBind(binding, this); sendrecv(bind); } catch (IOException ioe) { state = 0; throw ioe; } } } public void sendrecv(DcerpcMessage msg) throws DcerpcException, IOException {
/** * * @return result exception, if the call failed */ public DcerpcException getResult () { if ( this.result != 0 ) return new DcerpcException(this.result); return null; }
DcerpcException(int error) { super(getMessageByDcerpcError(error)); this.error = error; } public DcerpcException(String msg) {
@Override public String toString () { return bin_to_hex(this.time_low, 8) + '-' + bin_to_hex(this.time_mid, 4) + '-' + bin_to_hex(this.time_hi_and_version, 4) + '-' + bin_to_hex(this.clock_seq_hi_and_reserved, 2) + bin_to_hex(this.clock_seq_low, 2) + '-' + bin_to_hex(this.node[ 0 ], 2) + bin_to_hex(this.node[ 1 ], 2) + bin_to_hex(this.node[ 2 ], 2) + bin_to_hex(this.node[ 3 ], 2) + bin_to_hex(this.node[ 4 ], 2) + bin_to_hex(this.node[ 5 ], 2); } }
public DcerpcException getResult() { if (result != 0) return new DcerpcException(getResultMessage(result)); return null; }
public void bind() throws DcerpcException, IOException { synchronized (this) { try { state = 1; DcerpcMessage bind = new DcerpcBind(binding, this); sendrecv(bind); } catch (IOException ioe) { state = 0; throw ioe; } } } public void sendrecv(DcerpcMessage msg) throws DcerpcException, IOException {
public DcerpcException getResult() { if (result != 0) return new DcerpcException(result); return null; }
DcerpcException(int error) { super(getMessageByDcerpcError(error)); this.error = error; } public DcerpcException(String msg) {
@Override public DcerpcException getResult () { if ( this.result != 0 ) return new DcerpcException(getResultMessage(this.result)); return null; }
public void bind() throws DcerpcException, IOException { synchronized (this) { try { state = 1; DcerpcMessage bind = new DcerpcBind(binding, this); sendrecv(bind); } catch (IOException ioe) { state = 0; throw ioe; } } } public void sendrecv(DcerpcMessage msg) throws DcerpcException, IOException {
public DcerpcException getResult() { if (result != 0) return new DcerpcException(result); return null; }
@Override public DcerpcException getResult () { if ( this.result != 0 ) return new DcerpcException(getResultMessage(this.result)); return null; }
public DcerpcException getResult() { if (result != 0) return new DcerpcException(getResultMessage(result)); return null; }