public class peer_connection_handle
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
swigCMemOwn |
| Modifier | Constructor and Description |
|---|---|
protected |
peer_connection_handle(long cPtr,
boolean cMemoryOwn) |
protected peer_connection_handle(long cPtr,
boolean cMemoryOwn)
protected static long getCPtr(peer_connection_handle obj)
protected void finalize()
finalize in class java.lang.Objectpublic void delete()
public connection_type type()
public boolean is_seed()
public boolean upload_only()
public sha1_hash pid()
public boolean has_piece(int i)
public boolean is_interesting()
public boolean is_choked()
public boolean is_peer_interested()
public boolean has_peer_choked()
public void choke_this_peer()
public void maybe_unchoke_this_peer()
public void get_peer_info(peer_info p)
public torrent_handle associated_torrent()
public tcp_endpoint remote()
public tcp_endpoint local_endpoint()
public void disconnect(error_code ec, operation_t op, int arg2)
public void disconnect(error_code ec, operation_t op)
public boolean is_disconnecting()
public boolean is_connecting()
public boolean is_outgoing()
public boolean on_local_network()
public boolean ignore_unchoke_slots()
public boolean failed()
public boolean can_disconnect(error_code ec)
public boolean has_metadata()
public boolean in_handshake()
public void send_buffer(java.lang.String begin,
int size,
long flags)
public void send_buffer(java.lang.String begin,
int size)
public long last_seen_complete()
public boolean op_eq(peer_connection_handle o)
public boolean op_ne(peer_connection_handle o)
public boolean op_lt(peer_connection_handle o)
public long get_time_of_last_unchoke()