Giter Site home page Giter Site logo

Comments (3)

kayoub5 avatar kayoub5 commented on May 29, 2024 1

if you have a different problem, close this issue and open a new one.

what is the question? you are just describing vaguely a problem you have without context, full code or a stack trace.

from sharppcap.

kayoub5 avatar kayoub5 commented on May 29, 2024

use GetNextPacket instead of startcapture/event handler

from sharppcap.

mayyola avatar mayyola commented on May 29, 2024

Hello,Sir
I have another question
I use the object send instruction NetworkStream ns = tmpTcpClient.GetStream();
and use the GetNextPacket to receive the particular package,i specific ip address,such as devices.Filter = "src host 192.168.20.15";

but it will be generated the exception,"System.IndexOutOfRangeException: Index was outside the bounds of the array."

if use devices.Filter ="ip and tcp" is successful, but I just want send the instruction and get response from particular machine

immediately. thank you for any help

devices = LibPcapLiveDeviceList.Instance[3];
devices.Open();
devices.Filter = "src host 192.168.20.15";
var rawCapture = devices.GetNextPacket(out var packet);
var packet_final = Packet.ParsePacket(packet.Device.LinkType, packet.Data.ToArray());
ethernetPacket = (EthernetPacket)packet_final;
Console.WriteLine(ethernetPacket);

from sharppcap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.