public class SecsISocketManager extends PortManager implements java.lang.Runnable
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
cvsRev |
allIDsValid| Constructor and Description |
|---|
SecsISocketManager(int portNumber,
int baudRate)
Creates the SECS1 socket manager.
|
SecsISocketManager(int portNumber,
java.lang.String connectionId)
Creates the SECS1 socket manager.
|
| Modifier and Type | Method and Description |
|---|---|
int |
available()
Returns the number of bytes available.
|
void |
close()
Close the socket manager.
|
int |
read(byte[] b,
int off,
int len)
Read the socket.
|
void |
run()
runs the server and waits for input on the selected port.
|
java.lang.String |
toString()
Return the string representation of this object.
|
void |
write(byte[] b)
Writes the array to the socket.
|
addDeviceId, addPortManager, getConnectionManager, getConnectionManagerForId, getId, getLogger, getMessageHandlersForId, getPort, getPortManagerForId, getPortManagers, read, removeDeviceId, removePortManager, removeSessionId, setConnectionManager, setLogger, setPort, writepublic static final java.lang.String cvsRev
public SecsISocketManager(int portNumber,
int baudRate)
throws java.io.IOException
portNumber - port number zero creates an active connection to port number onebaudRate - ignored, but here so that it looks like a serial link.java.io.IOExceptionpublic SecsISocketManager(int portNumber,
java.lang.String connectionId)
throws java.io.IOException
java.io.IOExceptionSessionManager.getSessionManager(int, java.lang.String, int, int, boolean, java.lang.Class)public int available()
throws java.io.IOException
available in class PortManagerjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in class PortManagerjava.io.IOExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class PortManagerjava.io.IOExceptionreadpublic void run()
run in interface java.lang.Runnablepublic java.lang.String toString()
toString in class java.lang.Objectpublic void write(byte[] b)
throws java.io.IOException
write in class PortManagerjava.io.IOExceptionCopyright © 1999-2025 ErgoTech Systems, Inc. All Rights Reserved.