This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Jpcap setFilter help  RSS feed

 
george kapou
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello i got problem with the setFilter().
I has write this code:


The get filter returns a String but always i get the Eroor-- message, if i remove captor i do not, does anyone know why?
 
Rob Spoor
Sheriff
Posts: 21087
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What's the output if you add ex.printStackTrace() in the exception handler? Because right now all you know is that you get some exception - not its message, not its class / type, not where it came from, just the fact that you got an exception. You might as well do nothing. Even a simple System.out.println("Eroor-- " + e) would be better as that will at least contain the class / type and message.
 
george kapou
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply but i solved the problem. The problem was that the setFilter method is case sensitive. The solution found here h**p://www.winpcap.org/docs/docs_41b5/html/group__language.html
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!