Re: Accessing raw TCP packet payload data



As has already been mentioned you can use raw sockets etc to access this
information. I would however have to wonder the point of using TCP in such a
scenario.


"Chris Crowther" <hikari@xxxxxxxxxxxxxxxxx> wrote in message
news:OVjBD7DnGHA.4348@xxxxxxxxxxxxxxxxxxxxxxx
Hi All,

Does anyone know if it's possible to grab the raw payload data from
a TCP packet, using .NET (C# to be exact).

I'm writing a piece of software that communicates to a networked
device using a protocol encapsulated inside TCP. The structure of
the protocol is such that stream semantics aren't really appropiate
for communication; all the data for an encapsulated packet has to
fit inside a single TCP packet. I just want to be able to pickup
the payload for each TCP packet that comes in from the device, on
the established connection.

--
Chris Crowther
Developer
J&M Crowther Ltd.


.



Relevant Pages

  • Re: [fw-wiz] FW and TCP Sessions
    ... > if a FW is said to be a stateful firewall, ... > i haven't sent a TCP SYN to initiate a TCP Session ... > before sending this TCP packet? ...
    (Firewall-Wizards)
  • Re: [fw-wiz] FW and TCP Sessions
    ... >if a FW is said to be a stateful firewall, ... >i haven't sent a TCP SYN to initiate a TCP Session ... >before sending this TCP packet? ...
    (Firewall-Wizards)
  • Re: TCP socket - how to get rid?
    ... > TCP packet that can be sent to the signaling a close. ... Yes, theoretically it is possible to sent to peer a packet imitating normal TCP CLOSE, ... Who will set the state of TCP socket in the kernel to FIN-WAIT-1? ...
    (comp.os.linux.networking)
  • Re: ipfw: reset tcp
    ... E>>> When a rule 'reset tcp' matches, a kernel generates new TCP packet. ... E>> ipfw2 uses an mbuf flag to bypass the firewall - I am not sure if i ...
    (freebsd-net)
  • Re: ipchains log
    ... > What does mean in my ipchains log? ... some hign-numbered port on 216.190.255.225, ... in the TCP header; mostly you can ignore them, ... is a flag that is set on a TCP packet that attempts to initiate a ...
    (comp.os.linux.security)

Loading