Working on a project to create a custom TCP protocol to receive data from a device. Looking at the custom protocol functions. I think I get the OPENTCP function. This is where the BRX is a TCP Server?
This is where the BRX is the Client, and is opening a connection to a server.
It asks for a connection to a Client, establishes the connection and then you would call StreamIN or Out? Is that correct?
Yes, except the BRX is the Client, and it is talking to a Server.
The TCPListen is where I am a little confused. BRX is the CLIENT?
This TCPLISTEN is for the the BRX to be a Server. The BRX sits and listens on the specified port waiting for a Client to call so that it can Serve the requested information.
You listen for a connection and then jump to a code block. What happens next? You check the heap for data in the queue, but where is the Queue? Do you use Streamin? Still trying to figure out the communicating device, it has multiple ways to set it up. Do you have any complete examples other than what is in the help?
There is a full webserver example in the
Examples section of the forum, and there is also a client example that BobO wrote over there as well. There is another example posted
HERE as well.