Using Java to packetise tcp/ip data?

  • Thread starter Robert Mark Bram
  • Start date
R

Robert Mark Bram

Hi All!

I am researching ways to change how data is packetised and sent across a
network. For example, in a video stream, I want to control which
frames get sent as what packets..

Can Java do this or should I be looking at something lower, such as JNI
with C++?

Any thoughts would be most appreciated! This is a big project and I am
searching for some leads! :)

Rob
:)
 
C

Chris Smith

Robert said:
I am researching ways to change how data is packetised and sent across a
network. For example, in a video stream, I want to control which
frames get sent as what packets..

Can Java do this or should I be looking at something lower, such as JNI
with C++?

Java is perfectly fine for implementing UDP-based protocols, and part of
doing so is placing data into packets.

The only thing that should be deciding on packets for TCP-based
protocols is the operating system kernel, and you should not be writing
operating system kernels in Java. However, you can interact with TCP in
a few higher-level ways (such as enabling or disabling Nagle's
algorithm, flushing stream buffers at certain points, etc.) to achieve
some goals in terms of timely delivery of data.

So in that sense, no Java can't packetize TCP/IP data (the question in
your subject), but your desire to do so leads me to question whether you
ought to be using TCP in the first place.

--
www.designacourse.com
The Easiest Way to Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,900
Latest member
Nell636132

Latest Threads

Top