public class TConnection
extends java.lang.Object
| Constructor and Description |
|---|
TConnection(java.net.Socket socket,
int messageTimeout,
int messageFragmentTimeout) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
SmlFile |
getSMLFile() |
void |
send(byte[] smlPackage) |
void |
sendAttentionResponse(OctetString attentionType,
java.lang.String message,
OctetString serverID,
SmlMessage faultyMessage)
sends an SML_AttentionRes with sock
|
public TConnection(java.net.Socket socket,
int messageTimeout,
int messageFragmentTimeout)
throws java.io.IOException
java.io.IOExceptionpublic void send(byte[] smlPackage)
throws java.io.IOException
java.io.IOExceptionpublic void sendAttentionResponse(OctetString attentionType, java.lang.String message, OctetString serverID, SmlMessage faultyMessage)
attentionType - see SML_AttentionResmessage - OPTIONAL human readable messageserverID - id of this machinefaultyMessage - the SML_Message which caused this attentionResponsepublic SmlFile getSMLFile() throws java.io.IOException
java.io.IOExceptionpublic void close()