public class IOControl extends Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
IOControl.NetOutputStream |
Modifier and Type | Field and Description |
---|---|
private BufferedInputStream |
bis |
static int |
DEFAULT_SO_TIMEOUT
Default value for SO_TIMEOUT property.
|
private IOControl.NetOutputStream |
nos |
static String |
SO_LINGER_PROP |
static String |
SO_TIMEOUT_PROP
This property allows to Enable/disable SO_TIMEOUT with the specified timeout
in milliseconds, default value is 5.000L (5 seconds).
|
private Socket |
socket |
private static int |
socketLinger
Enable SO_LINGER with the specified linger time in seconds, if the
value is less than 0 then it disables SO_LINGER.
|
private static int |
socketTimeOut
Enable/disable SO_TIMEOUT with the specified timeout in milliseconds.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
Socket |
getSocket() |
int |
readInt() |
Object |
readObject() |
void |
writeInt(int i) |
void |
writeObject(Object obj) |
public static final String SO_TIMEOUT_PROP
Server side this property can be fixed either from java
launching
command, or in a3servers.xml
configuration file.
public static final int DEFAULT_SO_TIMEOUT
private static int socketTimeOut
fr.dyade.aaa.jndi2.socketTimeOut
.
With this option set to a non-zero timeout, a read() call on the
InputStream associated with this Socket will block for only this amount
of time.public static final String SO_LINGER_PROP
private static int socketLinger
private Socket socket
private BufferedInputStream bis
private IOControl.NetOutputStream nos
public IOControl(Socket socket) throws IOException
IOException
public Object readObject() throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
public int readInt() throws IOException
IOException
public void writeObject(Object obj) throws IOException
IOException
public void writeInt(int i) throws IOException
IOException
public void close()
public final Socket getSocket()
Copyright © 2022 ScalAgent D.T.. All rights reserved.