Those are Byte array identifiers.

If you do an explicit toString(), or allow a println method to do an
implicit toString(), that's what you'll see.  You need to make sure that
you are putting the byte array into a string (with the correct encoding)
to be able to see something with meaning.

SLH.

> 
> Hi man,,, thanx for ur response,,, i tried ur code but that 
> shows data in this format like
> [EMAIL PROTECTED]
> 
> [EMAIL PROTECTED]
> 
> [EMAIL PROTECTED]
> 
> [EMAIL PROTECTED]
> 
> [EMAIL PROTECTED]
> 
> [EMAIL PROTECTED]
> 
> [EMAIL PROTECTED]
> how can i infer it????? can u help...???
> accept my sincere thanx ....
> bye
> 
> 
> > I think this would be the solution:
> >
> >  private JpcapHandler handler=new JpcapHandler(){
> >   public void handlePacket(Packet packet) {
> >
> >    if(packet instanceof TCPPacket && 
> > ((TCPPacket)packet).dst_port==8080){
> >
> >     method =new String(packet.data);
> >
> >     if(method==null || method.indexOf("HTTP")==-1){
> >      // this packet doesn't contain HTTP header
> >      return;
> >     }
> >
> >     methods.addElement(method);
> >
> >   }
> >  };
> >
> > Regards!
> >
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > To: [EMAIL PROTECTED]
> > Date: Thu, 10 Jun 2004 01:09:17 +0600 (PKST)
> > Subject: Re: [WinPcap-users] help needed
> >
> >>
> >> i have but the problem with that is it does show me only 
> headers,, ie 
> >> i want to capture HTTP traffic in TCP payload but it only shows me 
> >> TCP header but not the payload,,, can u help???
> >>
> >>
> >> > try Jpcap
> >> > http://netresearch.ics.uci.edu/kfujii/jpcap/doc/index.html
> >> >
> >> > -----Original Message-----
> >> > From: [EMAIL PROTECTED]
> >> > To: [EMAIL PROTECTED]
> >> > Date: Wed, 9 Jun 2004 16:05:40 +0600 (PKST)
> >> > Subject: [WinPcap-users] help needed
> >> >
> >> >>
> >> >> hi !!
> >> >> can some one answer me a simple question...
> >> >> can i implement packet sniffing with winpcap and then 
> return some
> >> sort
> >> >> of
> >> >> string back to java code using JNI???? is this possible?????
> >> >> i shall be highly obliged...
> >> >> thanx....
> >> >>
> >> >>
> >> >>
> >> >> 
> ==================================================================
> >> >>  This is the WinPcap users list. It is archived at  
> >> >> http://www.mail-archive.com/[EMAIL PROTECTED]/
> >> >>
> >> >>  To unsubscribe use
> >> >>  mailto: 
> [EMAIL PROTECTED]
> >> >> 
> ==================================================================
> >> >>
> >> >
> >> >
> >> > 
> ==================================================================
> >> >  This is the WinPcap users list. It is archived at  
> >> > http://www.mail-archive.com/[EMAIL PROTECTED]/
> >> >
> >> >  To unsubscribe use
> >> >  mailto: [EMAIL PROTECTED]
> >> > 
> ==================================================================
> >> >
> >>
> >>
> >>
> >> ==================================================================
> >>  This is the WinPcap users list. It is archived at  
> >> http://www.mail-archive.com/[EMAIL PROTECTED]/
> >>
> >>  To unsubscribe use
> >>  mailto: [EMAIL PROTECTED]
> >> ==================================================================
> >>
> >
> >
> > ==================================================================
> >  This is the WinPcap users list. It is archived at  
> > http://www.mail-archive.com/[EMAIL PROTECTED]/
> >
> >  To unsubscribe use
> >  mailto: [EMAIL PROTECTED]
> > ==================================================================
> >
> 
> 
> 
> ==================================================================
>  This is the WinPcap users list. It is archived at  
> http://www.mail-archive.com/[EMAIL PROTECTED]/
> 
>  To unsubscribe use
>  mailto: [EMAIL PROTECTED]
> ==================================================================
> 


================================================================= This is the WinPcap 
users list. It is archived at
 http://www.mail-archive.com/[EMAIL PROTECTED]/

 To unsubscribe use
 mailto: [EMAIL PROTECTED]
=================================================================

Reply via email to