Solved

Generating a customised packet

Posted on 2004-09-04
5
208 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

This article will show, step by step, how to integrate R code into a R Sweave document
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

760 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

19 Experts available now in Live!

Get 1:1 Help Now