Class PTCPBuffer
java.lang.Object
ecmwf.common.transport.ptcp.psocket.tools.PTCPBuffer
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
PTCPBuffer
public PTCPBuffer(int numberOfStreams) Instantiates a new PTCP buffer.- Parameters:
numberOfStreams
- the number of streams
-
-
Method Details
-
setExit
public void setExit(int id) Sets the exit.- Parameters:
id
- the new exit
-
write
Write.- Parameters:
index
- the indexo
- the o- Throws:
InterruptedException
- the interrupted exception
-
read
Read.- Returns:
- the byte[]
- Throws:
InterruptedException
- the interrupted exception
-