public class Stream extends Object
| Constructor and Description |
|---|
Stream(String sid,
Socks5ConnectionManager manager) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
activate()
Tries to activate stream and each of service
|
void |
addConnection(Socks5IOService con)
Assign connection to stream
|
void |
close()
Close stream
|
Socks5IOService |
getConnection(Socks5ConnectionType connectionType)
Returns connection with specified type
|
Object |
getData(String key)
Returns stream data for key
|
tigase.xmpp.jid.JID |
getRequester()
Get bare JID of requester
|
Socks5IOService |
getSecondConnection(Socks5IOService con)
Returns another connections of stream
|
String |
getSID()
Returns stream id
|
tigase.xmpp.jid.JID |
getTarget()
Get bare JID of target
|
int |
getTransferredBytes()
Returns bytes transferred by this stream
|
int |
hashCodeForStream()
Returns hashCode for stream
|
void |
proxy(ByteBuffer buf,
Socks5IOService con)
Forward data to another service
|
void |
setData(String key,
Object value)
Set stream data
|
void |
setRequester(tigase.xmpp.jid.JID requester)
Set bare JID of requester
|
void |
setTarget(tigase.xmpp.jid.JID target)
Set bare JID of target
|
String |
toString() |
public Stream(String sid, Socks5ConnectionManager manager)
public String getSID()
public tigase.xmpp.jid.JID getRequester()
public void setRequester(tigase.xmpp.jid.JID requester)
requester - public tigase.xmpp.jid.JID getTarget()
public void setTarget(tigase.xmpp.jid.JID target)
public void addConnection(Socks5IOService con)
con - public Socks5IOService getConnection(Socks5ConnectionType connectionType)
connectionType - public void proxy(ByteBuffer buf, Socks5IOService con) throws IOException
buf - con - IOExceptionpublic boolean activate()
public void close()
public int hashCodeForStream()
public Socks5IOService getSecondConnection(Socks5IOService con)
con - public int getTransferredBytes()
Copyright © 2011–2019 Tigase. All rights reserved.