Use this method to establish In-Band Bytestreams to users accepting all incoming In-Band Bytestream requests since this method doesn't provide a way to tell the user something about the data to be sent.
To establish an In-Band Bytestream after negotiation the kind of data to be sent (e.g. file transfer) use {@link #establishSession(String,String)}. @param targetJID the JID of the user an In-Band Bytestream should be established @return the session to send/receive data to/from the user @throws XMPPException if the user doesn't support or accept in-band bytestreams, or if theuser prefers smaller block sizes
Use this method to establish SOCKS5 Bytestreams to users accepting all incoming Socks5 bytestream requests since this method doesn't provide a way to tell the user something about the data to be sent.
To establish a SOCKS5 Bytestream after negotiation the kind of data to be sent (e.g. file transfer) use {@link #establishSession(String,String)}. @param targetJID the JID of the user a SOCKS5 Bytestream should be established @return the Socket to send/receive data to/from the user @throws XMPPException if the user doesn't support or accept SOCKS5 Bytestreams, if no Socks5Proxy could be found, if the user couldn't connect to any of the SOCKS5 Proxies @throws IOException if the bytestream could not be established @throws InterruptedException if the current thread was interrupted while waiting
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|