Package edu.tufts.hrilab.socket
Class SocketConnection
java.lang.Object
edu.tufts.hrilab.socket.SocketConnection
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static String
protected static int
protected BufferedReader
protected String
protected org.slf4j.Logger
protected static int
protected PrintWriter
protected int
protected static int
protected Socket
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
void
sendCommand
(String message) void
sendMessage
(String message) waitedResponse
(int max_time)
-
Field Details
-
RESP_SLEEP
protected static int RESP_SLEEP -
MAX_RESP_TIME
protected static int MAX_RESP_TIME -
DEFAULT_IP
-
DEFAULT_PORT
protected static int DEFAULT_PORT -
log
protected org.slf4j.Logger log -
sock
-
out
-
in
-
ipAddress
-
port
protected int port
-
-
Constructor Details
-
SocketConnection
- Throws:
IOException
-
SocketConnection
- Throws:
IOException
-
SocketConnection
- Throws:
IOException
-
-
Method Details
-
waitedResponse
-
waitedResponse
-
sendCommand
-
sendMessage
-
closeSocket
public void closeSocket() -
isConnected
public boolean isConnected()
-