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_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 |
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.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 © 2019 ScalAgent D.T.. All rights reserved.