Modifier and Type | Field and Description |
---|---|
protected byte[] |
buffer |
protected DataInputStream |
in |
protected DataOutputStream |
out |
protected IpAddress |
peer_addr |
protected Runner |
runner |
protected Socket |
sock |
protected AtomicInteger |
writers |
Constructor and Description |
---|
Connection(Socket sock) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected BufferedInputStream |
createBufferedInputStream(InputStream in) |
protected BufferedOutputStream |
createBufferedOutputStream(OutputStream out) |
void |
run() |
protected void |
send(byte[] buffer,
int offset,
int length) |
protected SimpleTCP.Connection |
start() |
String |
toString() |
protected final Socket sock
protected final IpAddress peer_addr
protected final DataInputStream in
protected final DataOutputStream out
protected final Runner runner
protected byte[] buffer
protected final AtomicInteger writers
protected SimpleTCP.Connection start()
public void close()
close
in interface Closeable
close
in interface AutoCloseable
protected BufferedOutputStream createBufferedOutputStream(OutputStream out)
protected BufferedInputStream createBufferedInputStream(InputStream in)
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.