Solved

Generating a customised packet

Posted on 2004-09-04
5
209 Views
Last Modified: 2011-04-14
hi...

i'm enquiring whether is it possible and how to generate a customised packet, for example, specifying the header length , payload size ...etc in C or JAVA.
i'm doing this to try to emulate a DICOM packet and to send it out.
have u guys tried anything like this b4? any appropriate links and guides would be appreciated. pls help...

thanks.
0
Comment
Question by:sharol82
5 Comments
 
LVL 3

Accepted Solution

by:
str_ek earned 63 total points
ID: 11981219
you need to open a raw socket

take look at this
http://tangentsoft.net/wskfaq/advanced.html
and embeded example of raw ping :)
it's not the most clean and readable rawping implementation, but it cares bout most raw sockets usage concerning problems
0
 

Assisted Solution

by:papmech
papmech earned 62 total points
ID: 11983815
i think these are custom libraries but you could use them: http://jpcap.sourceforge.net/javadoc/net/sourceforge/jpcap/net/TCPPacket.html
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
WMI, model #, retrieving information 10 114
word0 challenge 4 65
Path of Workbook 3 60
tidtcpserver connection lost handle 2 70
RIA (Rich Internet Application) tools are interactive internet applications which have many of the characteristics of desktop applications. The RIA tools typically deliver output either by the way of a site-specific browser or via browser plug-in. T…
A short article about problems I had with the new location API and permissions in Marshmallow
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

912 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now