aspose file tools
The moose likes Sockets and Internet Protocols and the fly likes TCP - how to capture output to port 1570? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply Bookmark "TCP - how to capture output to port 1570?" Watch "TCP - how to capture output to port 1570?" New topic
Author

TCP - how to capture output to port 1570?

Jacques Bosch
Ranch Hand

Joined: Dec 18, 2003
Posts: 319
Hi there guys.

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.

Any help will be greatly appreciated!

Thanx much!!

J


Jacques<br />*******<br />MCP, SCJP, SCJD, SCWCD
Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923

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...

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.

Perhaps I should know what PBX is?


the ...receive (...) line waits until a Datagram is received or the timeout occured.
Then the data is in raw form in the inBuffer.

Perhaps you best start first with two programs on localhost, a sender(=client) and a receiver (=server), and dump the received data to System.out.


http://home.arcor.de/hirnstrom/bewerbung
Jacques Bosch
Ranch Hand

Joined: Dec 18, 2003
Posts: 319
Hi Stefan.

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.

Thanx much for your help.
Any further thoughts?

J
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: TCP - how to capture output to port 1570?
 
Similar Threads
taking a particular data from a number of lines
Listener
TCP/Socket mechanics of "Accept()" etc.
Need help w/creating app to send file from SD card directory to a user configurable ip address/prt
Java Mail