Class peer_connection_handle
java.lang.Object
com.frostwire.jlibtorrent.swig.peer_connection_handle
- Direct Known Subclasses:
bt_peer_connection_handle
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidvoiddelete()voiddisconnect(error_code ec, operation_t op) voiddisconnect(error_code ec, operation_t op, int arg2) booleanfailed()voidlongprotected static longbooleanbooleanbooleanhas_piece(int i) booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanis_seed()longvoidbooleanbooleanbooleanbooleanpid()remote()voidsend_buffer(String begin, int size) protected static longtype()boolean
-
Field Details
-
swigCMemOwn
protected transient boolean swigCMemOwn
-
-
Constructor Details
-
peer_connection_handle
protected peer_connection_handle(long cPtr, boolean cMemoryOwn) -
peer_connection_handle
-
-
Method Details
-
getCPtr
-
swigRelease
-
delete
public void delete() -
type
-
is_seed
public boolean is_seed() -
upload_only
public boolean upload_only() -
pid
-
has_piece
public boolean has_piece(int i) -
is_interesting
public boolean is_interesting() -
is_choked
public boolean is_choked() -
is_peer_interested
public boolean is_peer_interested() -
has_peer_choked
public boolean has_peer_choked() -
choke_this_peer
public void choke_this_peer() -
maybe_unchoke_this_peer
public void maybe_unchoke_this_peer() -
get_peer_info
-
associated_torrent
-
remote
-
local_endpoint
-
disconnect
-
disconnect
-
is_disconnecting
public boolean is_disconnecting() -
is_connecting
public boolean is_connecting() -
is_outgoing
public boolean is_outgoing() -
on_local_network
public boolean on_local_network() -
ignore_unchoke_slots
public boolean ignore_unchoke_slots() -
failed
public boolean failed() -
can_disconnect
-
has_metadata
public boolean has_metadata() -
in_handshake
public boolean in_handshake() -
send_buffer
-
last_seen_complete
public long last_seen_complete() -
op_eq
-
op_ne
-
op_lt
-
get_time_of_last_unchoke
public long get_time_of_last_unchoke()
-