Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-03-2008, 09:33 AM
Member
 
Join Date: Jun 2008
Posts: 2
Raghavendra is on a distinguished road
Regarding UDP Datagram packets
Hi all,

I am sending image over network using UDP datagram packet.

It will work fine data of 65kb length, but when i try to send data of more then 65kb it will through socketException.

To resolve this i have 2 solutions

1. To fragment data which is more the 65 kb into pieces of 65 kb.

Ex : If data is 135 kb i will send it as 3 packets of lengths 65 kb, 65 kb and 5 kb.

Issue 1 : If i use this solution i dont know how to reassemble packets at the receiver side.

2.Another solution to use jumbograms (ipv6).

Issue 2 : I dont how to use jumbograms in java, if any one of u know this please help.

if there any solutions other then above please suggest.

regards
-Raghu
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-11-2008, 12:12 AM
Member
 
Join Date: Jul 2007
Posts: 14
vglass is on a distinguished road
One of the disadvantages of UDP is that packets can come in any order. For this reason your UDP packet has to contain information on what order it should be reassembled in. One way to handle this may be to have the first X bytes of the packet contain this information.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Regarding UDP Datagram packtes Raghavendra Networking 0 06-03-2008 09:11 AM
Encrypting packets bugger Networking 2 02-04-2008 11:24 AM
How to capture IP packets Hasan Networking 1 05-31-2007 06:44 PM


All times are GMT +3. The time now is 02:52 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org