Recent

Author Topic: TCP Header  (Read 8153 times)

gilsonalencar

  • New Member
  • *
  • Posts: 48
TCP Header
« on: December 31, 2010, 12:19:26 am »
Is there anyway to read a TCP or UDP field using some Lazarus network component? I'm interesting in to access a particular field of TCP or UDP header.

cpalx

  • Hero Member
  • *****
  • Posts: 753
Re: TCP Header
« Reply #1 on: December 31, 2010, 03:55:50 am »
try Synapse or Lnet

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11935
  • FPC developer.
Re: TCP Header
« Reply #2 on: December 31, 2010, 04:38:52 pm »
Afaik  this is more PCAP work

gilsonalencar

  • New Member
  • *
  • Posts: 48
Re: TCP Header
« Reply #3 on: December 31, 2010, 06:34:02 pm »
Synapse and LNET appears to have no resources to access a TCP or UDP headers as libpcap for C++ and jpcap for Java.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11935
  • FPC developer.
Re: TCP Header
« Reply #4 on: December 31, 2010, 06:57:41 pm »
Synapse and LNET appears to have no resources to access a TCP or UDP headers as libpcap for C++ and jpcap for Java.

libpcap is afaik C, and a header in FPC could be written (or recycle one for Delphi)

gilsonalencar

  • New Member
  • *
  • Posts: 48
Re: TCP Header
« Reply #5 on: December 31, 2010, 09:00:11 pm »
So, is it possible to write a program into lazarus using methods (with codes written in c) available in the libcap?

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11935
  • FPC developer.
Re: TCP Header
« Reply #6 on: December 31, 2010, 10:15:10 pm »
So, is it possible to write a program into lazarus using methods (with codes written in c) available in the libcap?

Technically, yes.

gilsonalencar

  • New Member
  • *
  • Posts: 48
Re: TCP Header
« Reply #7 on: January 03, 2011, 10:31:28 pm »
Thanks for all information. I will investigate the possibilities.

Happy New Year

 

TinyPortal © 2005-2018