| Constructor and Description |
|---|
ProxyHandler(Socket clientSocket) |
| Modifier and Type | Method and Description |
|---|---|
int |
checkClientData() |
int |
checkServerData() |
void |
close() |
void |
connectToServer(String server,
int port) |
byte |
getByteFromClient() |
int |
getPort() |
boolean |
isActive() |
boolean |
prepareClient() |
void |
processRelay() |
void |
relay() |
void |
run() |
void |
sendToClient(byte[] buffer) |
void |
sendToClient(byte[] buffer,
int len) |
void |
sendToServer(byte[] buffer,
int len) |
void |
setLock(Object lock) |
public ProxyHandler(Socket clientSocket)
public void setLock(Object lock)
public void close()
public void sendToClient(byte[] buffer)
public void sendToClient(byte[] buffer,
int len)
public void sendToServer(byte[] buffer,
int len)
public boolean isActive()
public void connectToServer(String server, int port) throws IOException
IOExceptionpublic boolean prepareClient()
public void processRelay()
public void relay()
public int checkClientData()
public int checkServerData()
public int getPort()
Copyright © 2019–2024. All rights reserved.