Home > Cheap Hosting > hosting api

hosting api

October 27th, 2008 Leave a comment Go to comments


hosting api
Creating tcp/ip packet in java?

Dear Community,
Hello,
I am trying to make a port scanner for cell phones using J2ME. I am having problem in finding out how can I create my own raw packet in J2ME. The only class I can think of is connector. If somebody can please guide me how can I make my own tcp packet and send it to a host and listen for a response. rather than opening a full 3 handshake connection with host how can i send only one packet with the flags of my own choice.
I would be much obliged if can get a prompt reply.
I really need help as I had been researching here and there but havent found any relavent information so far. I got source code of some port scanners but they used wincap api and thats not possible in j2me to import an api. please help me thanks

Truly yours,
ET

I don’t think the default Java libraries support that. Even their own TCP implementation (java.net. PlainSocketImpl) uses native code to establish a socket.

You can do UDP packets (see java.net. DatagramPacket and java.net. DatagramSocket)

Adam Lasnik, Google

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • NewsVine
  • Reddit
  • StumbleUpon
  • Google Bookmarks
  • Yahoo! Buzz
  • Twitter
  • Technorati
  • Live
  • LinkedIn
  • MySpace
Categories: Cheap Hosting Tags: , , , ,
  1. No comments yet.
  1. No trackbacks yet.
Security Code: