Class ClassicTCPSocket
java.lang.Object
cool.scx.tcp.ClassicTCPSocket
- All Implemented Interfaces:
ScxTCPSocket,Closeable,AutoCloseable
经典 TCP Socket
- Version:
- 0.0.1
- Author:
- scx567888
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleanisClosed()booleanisTLS()upgradeToTLS(TLS tls)
-
Constructor Details
-
ClassicTCPSocket
-
-
Method Details
-
inputStream
- Specified by:
inputStreamin interfaceScxTCPSocket
-
outputStream
- Specified by:
outputStreamin interfaceScxTCPSocket
-
remoteAddress
- Specified by:
remoteAddressin interfaceScxTCPSocket
-
localAddress
- Specified by:
localAddressin interfaceScxTCPSocket
-
upgradeToTLS
- Specified by:
upgradeToTLSin interfaceScxTCPSocket- Throws:
IOException
-
isTLS
public boolean isTLS()- Specified by:
isTLSin interfaceScxTCPSocket
-
startHandshake
- Specified by:
startHandshakein interfaceScxTCPSocket- Throws:
IOException
-
isClosed
public boolean isClosed()- Specified by:
isClosedin interfaceScxTCPSocket
-
tlsManager
- Specified by:
tlsManagerin interfaceScxTCPSocket
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-