Hope somebody can give me a bit of direction here.
I have to write a software module to capture TCP/IP data that is output to port 1570 by a PBX. The PBX has a fixed IP address. All I can get out of these guys is that this data is output to this port. Now, since I have 0 TCP/IP programming experience, I find my self at a bit of a loss as to where to begin. What is needed to capture this data? Do I just sit listening to this port waiting to catch data? Perhaps somebody can point me in the right direction; what library / java api to use, where to start. The product is the Opera 4.12e from http://www.mdsgateways.com/.
It sounds to me that it's not too complicated, if I just have a starting point.
Call me weisenheimer, but you capture INPUT FROM port ..., or SEND OUTPUT TO port. Of course the output from x is the input for y...
I do know that much.
Perhaps I should know what PBX is?
A PBX or a PABX is a switch board system. Send out data on every call that is made in the company.
Here is an example with a small timeout - perhaps you better wait immediately (timeout = 0 or -1, see docs). And a bigger buffer might be good, until you know more details.
Because the data is sequential, DatagramSocket might not be the right choice. I have written a working server / client with just Socket and ServerSocket. Of course, I won't know if my server behaves like the real thing until we are able to test it on site.