Uhhh... bad news , thanks Brilwing.
b1.setRequestInfo((byte)(1));
b1.setClickId(BTN_ID);
butReq = new ButtonRequest();
butReq.setButtonStyle(butStyle);
butReq.setText(butText);
butReq.setLeft((byte)butPosition.x);
butReq.setTop((byte)butPosition.y);
butReq.setWidth((byte)butDimension.width);
butReq.setHeight((byte)butDimension.height);
butReq.setConnectionId(butConnectionId);
butReq.setClickId(butClickId);
butReq.setRequestInfo(butRequestId);
...
Channel channel = new TCPChannel("127.0.0.1", 29999);
SimpleClient client = new SimpleClient();
client.addListener(this);
client.connect(channel,
"somepassword",
"someInsimName",
(short) (InitRequest.[I]RECEIVE_NODE_LAP | [/I][COLOR=Red]InitRequest.[I]LOCAL[/I][/COLOR]),
0, 0, '!');
...
public void close() throws IOException {
if (channel != null && channel.isConnected()) {
send(new TinyRequest(Tiny.CLOSE));
if (outChannel != null) {
disableOutGauge();
disableOutSim();
outChannel.close();
}
channel.close();
}
}
public void close() throws IOException {
if (channel != null && channel.isConnected()) {
if (outChannel != null) {
disableOutGauge();
disableOutSim();
outChannel.close();
}
send(new TinyRequest(Tiny.CLOSE));
channel.close();
}
}