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, write
public 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.IOException
public SecsISocketManager(int portNumber, java.lang.String connectionId) throws java.io.IOException
java.io.IOException
SessionManager.getSessionManager(int, java.lang.String, int, int, boolean, java.lang.Class)
public int available() throws java.io.IOException
available
in class PortManager
java.io.IOException
public void close() throws java.io.IOException
close
in class PortManager
java.io.IOException
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class PortManager
java.io.IOException
read
public void run()
run
in interface java.lang.Runnable
public java.lang.String toString()
toString
in class java.lang.Object
public void write(byte[] b) throws java.io.IOException
write
in class PortManager
java.io.IOException
Copyright © 1999-2025 ErgoTech Systems, Inc. All Rights Reserved.