Added functionality for more than one visualiser to connect to the mock.
- more than one visualiser can now connect to the mock. - Created class ConnectionAcceptor that will accept and allocate to each socket - Issue of sockets connecting after the race starts then disconnecting will use a socket slot. #story[1010]
This commit is contained in:
Generated
+3
@@ -0,0 +1,3 @@
|
|||||||
|
<component name="CopyrightManager">
|
||||||
|
<settings default="" />
|
||||||
|
</component>
|
||||||
@@ -16,6 +16,8 @@ import javax.xml.parsers.DocumentBuilderFactory;
|
|||||||
import javax.xml.parsers.ParserConfigurationException;
|
import javax.xml.parsers.ParserConfigurationException;
|
||||||
import javax.xml.transform.TransformerException;
|
import javax.xml.transform.TransformerException;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
import java.net.ServerSocket;
|
||||||
|
import java.net.Socket;
|
||||||
import java.nio.charset.Charset;
|
import java.nio.charset.Charset;
|
||||||
import java.nio.charset.StandardCharsets;
|
import java.nio.charset.StandardCharsets;
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,201 @@
|
|||||||
|
package mock.app;
|
||||||
|
|
||||||
|
import network.Messages.Enums.XMLMessageType;
|
||||||
|
import network.Messages.LatestMessages;
|
||||||
|
import network.Messages.XMLMessage;
|
||||||
|
import org.mockito.Mock;
|
||||||
|
|
||||||
|
import java.io.DataOutputStream;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.lang.reflect.Array;
|
||||||
|
import java.net.ServerSocket;
|
||||||
|
import java.net.Socket;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.concurrent.ArrayBlockingQueue;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Connection acceptor for multiple clients
|
||||||
|
*/
|
||||||
|
public class ConnectionAcceptor implements Runnable {
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Port to expose server on.
|
||||||
|
*/
|
||||||
|
private int serverPort = 4942;
|
||||||
|
/**
|
||||||
|
* Socket used to listen for clients on.
|
||||||
|
*/
|
||||||
|
private ServerSocket serverSocket;
|
||||||
|
//mock outputs
|
||||||
|
private ArrayBlockingQueue<MockOutput> mockOutputList = new ArrayBlockingQueue<>(16);
|
||||||
|
//latest messages
|
||||||
|
private LatestMessages latestMessages;
|
||||||
|
//Acknowledgement number for packets
|
||||||
|
private int ackNumber = 0;
|
||||||
|
//race xml sequence number
|
||||||
|
private short raceXMLSequenceNumber;
|
||||||
|
//boat xml sequence number
|
||||||
|
private short boatXMLSequenceNumber;
|
||||||
|
//regatta xml sequence number
|
||||||
|
private short regattaXMLSequenceNumber;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Connection Acceptor Constructor
|
||||||
|
* @param latestMessages Latest messages to be sent
|
||||||
|
* @throws IOException if a server socket cannot be instantiated.
|
||||||
|
*/
|
||||||
|
public ConnectionAcceptor(LatestMessages latestMessages) throws IOException {
|
||||||
|
|
||||||
|
this.latestMessages =latestMessages;
|
||||||
|
this.serverSocket = new ServerSocket(serverPort);
|
||||||
|
CheckClientConnection checkClientConnection = new CheckClientConnection(mockOutputList);
|
||||||
|
new Thread(checkClientConnection).start();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Run the Acceptor
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
|
while(true){//should be connections not filled up
|
||||||
|
try {
|
||||||
|
System.out.println("Waiting for a connection...");//TEMP DEBUG REMOVE
|
||||||
|
Socket mockSocket = serverSocket.accept();
|
||||||
|
DataOutputStream outToVisualiser = new DataOutputStream(mockSocket.getOutputStream());
|
||||||
|
MockOutput mockOutput = new MockOutput(latestMessages, outToVisualiser);
|
||||||
|
new Thread(mockOutput).start();
|
||||||
|
mockOutputList.add(mockOutput);
|
||||||
|
System.out.println(String.format("%d number of Visualisers Connected.", mockOutputList.size()));
|
||||||
|
} catch (IOException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Nested class to remove disconnected clients
|
||||||
|
*/
|
||||||
|
class CheckClientConnection implements Runnable{
|
||||||
|
|
||||||
|
private ArrayBlockingQueue<MockOutput> mocks;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor
|
||||||
|
* @param mocks Mocks "connected"
|
||||||
|
*/
|
||||||
|
public CheckClientConnection(ArrayBlockingQueue<MockOutput> mocks){
|
||||||
|
this.mocks = mocks;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Run the remover.
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
|
double timeSinceLastHeartBeat = System.currentTimeMillis();
|
||||||
|
while(true) {
|
||||||
|
ArrayBlockingQueue<MockOutput> m = new ArrayBlockingQueue(16, true, mocks);
|
||||||
|
for (MockOutput mo : m) {
|
||||||
|
try {
|
||||||
|
mo.sendHeartBeat();
|
||||||
|
} catch (IOException e) {
|
||||||
|
mocks.remove(mo);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
Thread.sleep(100);
|
||||||
|
} catch (InterruptedException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the Race XML to send.
|
||||||
|
* @param raceXml XML to send to the Client.
|
||||||
|
*/
|
||||||
|
public void setRaceXml(String raceXml) {
|
||||||
|
//Create the message.
|
||||||
|
XMLMessage message = this.createXMLMessage(raceXml, XMLMessageType.RACE);
|
||||||
|
|
||||||
|
//Place it in LatestMessages.
|
||||||
|
this.latestMessages.setRaceXMLMessage(message);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the Regatta XMl to send.
|
||||||
|
* @param regattaXml XML to send to Client.
|
||||||
|
*/
|
||||||
|
public void setRegattaXml(String regattaXml) {
|
||||||
|
//Create the message.
|
||||||
|
XMLMessage message = this.createXMLMessage(regattaXml, XMLMessageType.REGATTA);
|
||||||
|
|
||||||
|
//Place it in LatestMessages.
|
||||||
|
this.latestMessages.setRegattaXMLMessage(message);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the Boats XML to send.
|
||||||
|
* @param boatsXml XMl to send to the Client.
|
||||||
|
*/
|
||||||
|
public void setBoatsXml(String boatsXml) {
|
||||||
|
//Create the message.
|
||||||
|
XMLMessage message = this.createXMLMessage(boatsXml, XMLMessageType.BOAT);
|
||||||
|
|
||||||
|
//Place it in LatestMessages.
|
||||||
|
this.latestMessages.setBoatXMLMessage(message);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates an XMLMessage of a specified subtype using the xml contents string.
|
||||||
|
* @param xmlString The contents of the xml file.
|
||||||
|
* @param messageType The subtype of xml message (race, regatta, boat).
|
||||||
|
* @return The created XMLMessage object.
|
||||||
|
*/
|
||||||
|
private XMLMessage createXMLMessage(String xmlString, XMLMessageType messageType) {
|
||||||
|
|
||||||
|
//Get the correct sequence number to use, and increment it.
|
||||||
|
short sequenceNumber = 0;
|
||||||
|
if (messageType == XMLMessageType.RACE) {
|
||||||
|
sequenceNumber = this.raceXMLSequenceNumber;
|
||||||
|
this.raceXMLSequenceNumber++;
|
||||||
|
|
||||||
|
} else if (messageType == XMLMessageType.BOAT) {
|
||||||
|
sequenceNumber = this.boatXMLSequenceNumber;
|
||||||
|
this.boatXMLSequenceNumber++;
|
||||||
|
|
||||||
|
} else if (messageType == XMLMessageType.REGATTA) {
|
||||||
|
sequenceNumber = this.regattaXMLSequenceNumber;
|
||||||
|
this.regattaXMLSequenceNumber++;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
//Create the message.
|
||||||
|
XMLMessage message = new XMLMessage(
|
||||||
|
XMLMessage.currentVersionNumber,
|
||||||
|
getNextAckNumber(),
|
||||||
|
System.currentTimeMillis(),
|
||||||
|
messageType,
|
||||||
|
sequenceNumber,
|
||||||
|
xmlString);
|
||||||
|
|
||||||
|
|
||||||
|
return message;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Increments the ackNumber value, and returns it.
|
||||||
|
* @return Incremented ackNumber.
|
||||||
|
*/
|
||||||
|
private int getNextAckNumber(){
|
||||||
|
this.ackNumber++;
|
||||||
|
|
||||||
|
return this.ackNumber;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@@ -29,7 +29,7 @@ public class Event {
|
|||||||
|
|
||||||
private Polars boatPolars;
|
private Polars boatPolars;
|
||||||
|
|
||||||
private MockOutput mockOutput;
|
private ConnectionAcceptor mockOutput;
|
||||||
private LatestMessages latestMessages;
|
private LatestMessages latestMessages;
|
||||||
|
|
||||||
|
|
||||||
@@ -46,6 +46,9 @@ public class Event {
|
|||||||
this.raceXML = getRaceXMLAtCurrentTime(raceXML);
|
this.raceXML = getRaceXMLAtCurrentTime(raceXML);
|
||||||
this.boatXML = boatXML;
|
this.boatXML = boatXML;
|
||||||
this.regattaXML = regattaXML;
|
this.regattaXML = regattaXML;
|
||||||
|
System.out.println(raceXML);
|
||||||
|
System.out.println(boatXML);
|
||||||
|
System.out.println(regattaXML);
|
||||||
|
|
||||||
this.xmlFileType = type;
|
this.xmlFileType = type;
|
||||||
|
|
||||||
@@ -55,7 +58,7 @@ public class Event {
|
|||||||
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
this.mockOutput = new MockOutput(this.latestMessages);
|
this.mockOutput = new ConnectionAcceptor(latestMessages);
|
||||||
new Thread(mockOutput).start();
|
new Thread(mockOutput).start();
|
||||||
|
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
|||||||
@@ -29,18 +29,6 @@ public class MockOutput implements Runnable
|
|||||||
*/
|
*/
|
||||||
private double heartbeatPeriod = 5.0;
|
private double heartbeatPeriod = 5.0;
|
||||||
|
|
||||||
/**
|
|
||||||
* Port to expose server on.
|
|
||||||
*/
|
|
||||||
private int serverPort = 4942;
|
|
||||||
/**
|
|
||||||
* Socket used to listen for clients on.
|
|
||||||
*/
|
|
||||||
private ServerSocket serverSocket;
|
|
||||||
/**
|
|
||||||
* Socket used to communicate with a client.
|
|
||||||
*/
|
|
||||||
private Socket mockSocket;
|
|
||||||
/**
|
/**
|
||||||
* Output stream which wraps around mockSocket outstream.
|
* Output stream which wraps around mockSocket outstream.
|
||||||
*/
|
*/
|
||||||
@@ -60,22 +48,6 @@ public class MockOutput implements Runnable
|
|||||||
*/
|
*/
|
||||||
private int ackNumber = 1;
|
private int ackNumber = 1;
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Sequence number for race xml messages.
|
|
||||||
*/
|
|
||||||
private short raceXMLSequenceNumber = 1;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Sequence number for boat xml messages.
|
|
||||||
*/
|
|
||||||
private short boatXMLSequenceNumber = 1;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Sequence number for regatta xml messages.
|
|
||||||
*/
|
|
||||||
private short regattaXMLSequenceNumber = 1;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sequence number for heartbeat messages.
|
* Sequence number for heartbeat messages.
|
||||||
*/
|
*/
|
||||||
@@ -86,13 +58,14 @@ public class MockOutput implements Runnable
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Ctor.
|
* Ctor.
|
||||||
* @param latestMessages The collection of messages to send to connected clients.
|
*
|
||||||
* @throws IOException if server socket cannot be opened.
|
* @throws IOException if server socket cannot be opened.
|
||||||
*/
|
*/
|
||||||
public MockOutput(LatestMessages latestMessages) throws IOException {
|
public MockOutput(LatestMessages latestMessages, DataOutputStream outToVisualiser) throws IOException {
|
||||||
|
|
||||||
|
this.outToVisualiser = outToVisualiser;
|
||||||
|
|
||||||
this.lastHeartbeatTime = System.currentTimeMillis();
|
this.lastHeartbeatTime = System.currentTimeMillis();
|
||||||
this.serverSocket = new ServerSocket(serverPort);
|
|
||||||
|
|
||||||
this.latestMessages = latestMessages;
|
this.latestMessages = latestMessages;
|
||||||
|
|
||||||
@@ -155,44 +128,6 @@ public class MockOutput implements Runnable
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Creates an XMLMessage of a specified subtype using the xml contents string.
|
|
||||||
* @param xmlString The contents of the xml file.
|
|
||||||
* @param messageType The subtype of xml message (race, regatta, boat).
|
|
||||||
* @return The created XMLMessage object.
|
|
||||||
*/
|
|
||||||
private XMLMessage createXMLMessage(String xmlString, XMLMessageType messageType) {
|
|
||||||
|
|
||||||
//Get the correct sequence number to use, and increment it.
|
|
||||||
short sequenceNumber = 0;
|
|
||||||
if (messageType == XMLMessageType.RACE) {
|
|
||||||
sequenceNumber = this.raceXMLSequenceNumber;
|
|
||||||
this.raceXMLSequenceNumber++;
|
|
||||||
|
|
||||||
} else if (messageType == XMLMessageType.BOAT) {
|
|
||||||
sequenceNumber = this.boatXMLSequenceNumber;
|
|
||||||
this.boatXMLSequenceNumber++;
|
|
||||||
|
|
||||||
} else if (messageType == XMLMessageType.REGATTA) {
|
|
||||||
sequenceNumber = this.regattaXMLSequenceNumber;
|
|
||||||
this.regattaXMLSequenceNumber++;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
//Create the message.
|
|
||||||
XMLMessage message = new XMLMessage(
|
|
||||||
XMLMessage.currentVersionNumber,
|
|
||||||
getNextAckNumber(),
|
|
||||||
System.currentTimeMillis(),
|
|
||||||
messageType,
|
|
||||||
sequenceNumber,
|
|
||||||
xmlString );
|
|
||||||
|
|
||||||
|
|
||||||
return message;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Encodes/serialises a XMLMessage message, and returns it.
|
* Encodes/serialises a XMLMessage message, and returns it.
|
||||||
* @param xmlMessage The XMLMessage message to serialise.
|
* @param xmlMessage The XMLMessage message to serialise.
|
||||||
@@ -266,6 +201,17 @@ public class MockOutput implements Runnable
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sends a heartbeat
|
||||||
|
* @throws IOException if the socket is no longer open at both ends the heartbeat returns an error.
|
||||||
|
*/
|
||||||
|
public void sendHeartBeat() throws IOException {
|
||||||
|
//Sends a heartbeat every so often.
|
||||||
|
if (timeSinceHeartbeat() >= heartbeatPeriod) {
|
||||||
|
outToVisualiser.write(parseHeartbeat(createHeartbeatMessage()));
|
||||||
|
lastHeartbeatTime = System.currentTimeMillis();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sending loop of the Server
|
* Sending loop of the Server
|
||||||
@@ -274,11 +220,6 @@ public class MockOutput implements Runnable
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
while (!stop){
|
while (!stop){
|
||||||
//Wait for a client to connect.
|
|
||||||
System.out.println("Waiting for a connection...");//TEMP DEBUG REMOVE
|
|
||||||
mockSocket = serverSocket.accept();
|
|
||||||
|
|
||||||
outToVisualiser = new DataOutputStream(mockSocket.getOutputStream());
|
|
||||||
|
|
||||||
//Wait until all of the xml files have been set.
|
//Wait until all of the xml files have been set.
|
||||||
if (!this.latestMessages.hasAllXMLMessages()) {
|
if (!this.latestMessages.hasAllXMLMessages()) {
|
||||||
@@ -307,12 +248,6 @@ public class MockOutput implements Runnable
|
|||||||
long minimumFramePeriod = 16;
|
long minimumFramePeriod = 16;
|
||||||
if (framePeriod >= minimumFramePeriod) {
|
if (framePeriod >= minimumFramePeriod) {
|
||||||
|
|
||||||
//Sends a heartbeat every so often.
|
|
||||||
if (timeSinceHeartbeat() >= heartbeatPeriod) {
|
|
||||||
outToVisualiser.write(parseHeartbeat(createHeartbeatMessage()));
|
|
||||||
lastHeartbeatTime = System.currentTimeMillis();
|
|
||||||
}
|
|
||||||
|
|
||||||
//Send XML messages.
|
//Send XML messages.
|
||||||
if (!sentXMLs) {
|
if (!sentXMLs) {
|
||||||
//Serialise them.
|
//Serialise them.
|
||||||
@@ -385,47 +320,4 @@ public class MockOutput implements Runnable
|
|||||||
stop = true;
|
stop = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the Race XML to send.
|
|
||||||
* @param raceXml XML to send to the Client.
|
|
||||||
*/
|
|
||||||
public void setRaceXml(String raceXml) {
|
|
||||||
//Create the message.
|
|
||||||
XMLMessage message = this.createXMLMessage(raceXml, XMLMessageType.RACE);
|
|
||||||
|
|
||||||
//Place it in LatestMessages.
|
|
||||||
this.latestMessages.setRaceXMLMessage(message);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the Regatta XMl to send.
|
|
||||||
* @param regattaXml XML to send to Client.
|
|
||||||
*/
|
|
||||||
public void setRegattaXml(String regattaXml) {
|
|
||||||
//Create the message.
|
|
||||||
XMLMessage message = this.createXMLMessage(regattaXml, XMLMessageType.REGATTA);
|
|
||||||
|
|
||||||
//Place it in LatestMessages.
|
|
||||||
this.latestMessages.setRegattaXMLMessage(message);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the Boats XML to send.
|
|
||||||
* @param boatsXml XMl to send to the Client.
|
|
||||||
*/
|
|
||||||
public void setBoatsXml(String boatsXml) {
|
|
||||||
//Create the message.
|
|
||||||
XMLMessage message = this.createXMLMessage(boatsXml, XMLMessageType.BOAT);
|
|
||||||
|
|
||||||
//Place it in LatestMessages.
|
|
||||||
this.latestMessages.setBoatXMLMessage(message);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public static void main(String argv[]) throws Exception
|
|
||||||
{
|
|
||||||
MockOutput client = new MockOutput(new LatestMessages());
|
|
||||||
client.run();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -289,8 +289,7 @@ public class LatestMessages extends Observable {
|
|||||||
* @return True if race, boat, and regatta have an xml message, false otherwise.
|
* @return True if race, boat, and regatta have an xml message, false otherwise.
|
||||||
*/
|
*/
|
||||||
public boolean hasAllXMLMessages() {
|
public boolean hasAllXMLMessages() {
|
||||||
|
if (this.regattaXMLMessage == null || this.boatXMLMessage == null || this.raceXMLMessage == null) {
|
||||||
if ((this.regattaXMLMessage == null) || (this.boatXMLMessage == null) || (this.raceXMLMessage == null)) {
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -75,6 +75,7 @@ public class ConnectionController extends Controller {
|
|||||||
try{
|
try{
|
||||||
RaceConnection connection = connectionTable.getSelectionModel().getSelectedItem();
|
RaceConnection connection = connectionTable.getSelectionModel().getSelectedItem();
|
||||||
Socket socket = new Socket(connection.getHostname(), connection.getPort());
|
Socket socket = new Socket(connection.getHostname(), connection.getPort());
|
||||||
|
socket.setKeepAlive(true);
|
||||||
connectionWrapper.setVisible(false);
|
connectionWrapper.setVisible(false);
|
||||||
parent.enterLobby(socket);
|
parent.enterLobby(socket);
|
||||||
} catch (IOException e) { /* Never reached */ }
|
} catch (IOException e) { /* Never reached */ }
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ import java.nio.ByteBuffer;
|
|||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import java.util.concurrent.ArrayBlockingQueue;
|
||||||
|
|
||||||
import static network.Utils.ByteConverter.bytesToShort;
|
import static network.Utils.ByteConverter.bytesToShort;
|
||||||
|
|
||||||
@@ -372,6 +373,4 @@ public class VisualiserInput implements Runnable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,6 +33,10 @@ public class RaceConnection {
|
|||||||
try (Socket s = new Socket()){
|
try (Socket s = new Socket()){
|
||||||
s.connect(i, 750);//TODO this should be at least a second or two, once moved to its own thread
|
s.connect(i, 750);//TODO this should be at least a second or two, once moved to its own thread
|
||||||
status.set("Ready");
|
status.set("Ready");
|
||||||
|
s.shutdownInput();
|
||||||
|
s.shutdownOutput();
|
||||||
|
s.close();
|
||||||
|
System.out.println(String.valueOf(s.isClosed()));
|
||||||
return true;
|
return true;
|
||||||
} catch (IOException e) {}
|
} catch (IOException e) {}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user