public class SocketConnection extends Connection implements AutoCloseable
Constructor and Description |
---|
SocketConnection() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
connect(int retryAttempts) |
void |
disconnect() |
protected Socket |
getSocket() |
protected void |
internalSend(String cmd) |
protected String |
internalWaitfor(String match) |
boolean |
isConnected() |
connect, getAddSequenceAndChecksum, getConnectionTimeout, getHost, getIdleTimeout, getPort, getRetryAttempts, getRetryWait, getStrictChecksumChecking, getStrictSequenceChecking, send, send, setAddSequenceAndChecksum, setConnectionTimeout, setHost, setIdleTimeout, setPort, setRetryAttempts, setRetryWait, setStrictChecksumChecking, setStrictSequenceChecking, strim, waitfor
protected void connect(int retryAttempts) throws Exception
connect
in class Connection
Exception
public boolean isConnected()
isConnected
in class Connection
public void disconnect()
disconnect
in class Connection
protected void internalSend(String cmd) throws ConnectionFailure
internalSend
in class Connection
ConnectionFailure
protected String internalWaitfor(String match) throws ConnectionFailure
internalWaitfor
in class Connection
ConnectionFailure
public void close() throws Exception
close
in interface AutoCloseable
Exception
Copyright © 2004–2019 Ceridwen Limited. All rights reserved.