Android Question i want send ARP packet by my app,is it possible?

hears

Active Member
Licensed User
Longtime User
arp1.png
arp2.png
i have look use NETWORK libary can write UDP packet:
B4X:
Private myUDP As UDPSocket
    Private Packet As UDPPacket
    Private UDPTimeout As Timer
UDPTimeout.Initialize("UDPTimeout", 2000)




Sub UDPTimeout_Tick
    UDPTimeout.Enabled = False
    ProgressDialogHide
    Timer1.Enabled=False

    Msgbox("Timeout!" , "Error")
    Sleep(3000)
 
    Timer1.Enabled=True
End Sub

SUB SEND_UDP(IP AS STRING,port as int)
z = XXXXXX.EncodeBuf
Dim buffer (z.Length) As Byte
    For cnt = 0 To z.Length - 1
        buffer(cnt) = Asc(z.CharAt(cnt))
    Next
    ' Gestione del pacchetto dati e del Timeout
    UDPTimeout.Enabled = True
    Packet.Initialize( buffer,ip, port)
    myUDP.Send(Packet)
END SUB



here is ARP packet code pictures, get by wirshark. who can help me ?
 

hears

Active Member
Licensed User
Longtime User
The jpcap API allows developers to create their own packet capture applications.
A portion of the capture interface is shown
The jpcap distribution includes both

A tool for real-time network traffic capture and analysis
An API for developing packet capture applications in Java
The jpcap network capture tool performs real-time decomposition and visualization of network traffic.

http://jpcap.sourceforge.net/

Is it possible to Chang this project to B4a library?
 
Upvote 0
Top