Generating a customised packet

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.
sharol82Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
str_ekConnect With a Mentor Commented:
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
 
papmechConnect With a Mentor Commented:
i think these are custom libraries but you could use them: http://jpcap.sourceforge.net/javadoc/net/sourceforge/jpcap/net/TCPPacket.html
0
All Courses

From novice to tech pro — start learning today.