org.glite.lb
public class ILProto extends Object
Constructor Summary | |
---|---|
ILProto(Socket socket)
construcor initializes the class' socket, inStream and outStream attributes
|
Method Summary | |
---|---|
int | errMin() |
String | errMsg() |
String | receiveMessage()
this method reads from the inpuStream of the provided socket, checks for
the magic word and returns relevant info
|
int | receiveReply() |
void | sendMessage(String msg) |
void | sendReply(int errCode, int minErrCode, String message)
this method encodes and sends a reply to the interlogger via the socket's
outputStream
|
Parameters: socket an SSLSocket
Throws: java.io.IOException
Returns: a String containing third line of the inputStream data, without the info about its length
Throws: IOException
Parameters: errCode errCode of the calling minErrCode minimum available errcode message message for the interlogger - could be any String
Throws: IOException