判断 socket 状态

This commit is contained in:
chengdu
2019-07-13 18:10:57 +08:00
parent 4b8b8397d1
commit 6311c74414
3 changed files with 75 additions and 14 deletions

View File

@@ -1748,6 +1748,14 @@ public class StorageClient {
this.storageServer.getSocket().getOutputStream().write(wholePkg);
}
public boolean isConnected(){
return trackerServer.isConnected();
}
public boolean isAvaliable(){
return trackerServer.isAvaliable();
}
/**
* Upload file by file buff
*