Class TcpHandshake
java.lang.Object
org.apache.drill.exec.store.pcap.decoder.TcpHandshake
This class is used to record the status of the TCP Handshake. Initially this is used just to determine whether a session is open or closed, but
 future functionality could include SYN flood identification, or other hackery with TCP flags.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionorg.apache.drill.exec.store.pcap.decoder.TcpHandshake.StatebooleanisClosed()This method returns true if the session is closed properly via FIN -> FIN ACK, false if not.booleanReturns true for a correct TCP handshake: SYN|SYNACK|ACK, False if not.voidsetAck()voidsetConnected(long sessionID) voidsetFin()voidsetRst()voidsetSyn()
- 
Constructor Details- 
TcpHandshakepublic TcpHandshake()
 
- 
- 
Method Details- 
isConnectedpublic boolean isConnected()Returns true for a correct TCP handshake: SYN|SYNACK|ACK, False if not.- Returns:
- boolean true if the session is open, false if not.
 
- 
isClosedpublic boolean isClosed()This method returns true if the session is closed properly via FIN -> FIN ACK, false if not.- Returns:
- boolean true if the session is closed, false if not.
 
- 
getCurrentSessionStatepublic org.apache.drill.exec.store.pcap.decoder.TcpHandshake.State getCurrentSessionState()
- 
setConnectedpublic void setConnected(long sessionID) 
- 
setRstpublic void setRst()
- 
setFinpublic void setFin()
- 
setAckpublic void setAck()
- 
setSynpublic void setSyn()
 
-