public class SocketPipe extends Object
SocketPipe represents pipe that can transfer data from one socket to another socket. The tow socket should be
connected sockets. If any of the them occurred error the pipe will close all of them.| Modifier and Type | Class and Description |
|---|---|
class |
SocketPipe.PipeListener |
| Constructor and Description |
|---|
SocketPipe(Socket socket1,
Socket socket2)
Constructs SocketPipe instance by tow connected sockets.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isRunning() |
void |
setName(String name) |
void |
start() |
void |
stop() |
public SocketPipe(Socket socket1, Socket socket2) throws IOException
IOExceptionpublic void start()
public void stop()
public boolean isRunning()
public void setName(String name)
Copyright © 2017. All rights reserved.