Hi All
A couple of quick questions about the TCP listener.
This post: RE: Initiate message via listener as server says that a listener object should have access to the following methods:
public abstract boolean writeAsBytes(String bytes)
public abstract boolean writeBytes(byte[] bytes)
public abstract boolean writeString(String bytes, boolean utf8)
However, this doesn't seem to work with ogscript.getListenerById().
What methods are available to a getListenerById where the listener is a TCP client? Or for that matter a TCP server.
I have previously used sendUDPAsBytes with a UDP listener.
Also, is it possible to specify the local TCP port when using TCP client - there are cases when it will be handy to be able to re-open the same connection used previously, ie reusing the local port.
If it is possible to do a writeBytes from a TCP server, then presumably I wouldn't get the benefit of message processing, via delimiters on the incoming messages.
Thanks.
Simon
------------------------------
Simon Liddicott
Systems Engineer
------------------------------