#2257 closed Feature Request (Rejected)
Retreive MAC address from UDPRecv
Reported by: | vortex91 | Owned by: | |
---|---|---|---|
Milestone: | Component: | AutoIt | |
Version: | Severity: | None | |
Keywords: | mac address UDPRecv | Cc: |
Description
It would be helpfull to return in array the mac of the connection as part of the array
Attachments (0)
Change History (4)
comment:1 Changed 12 years ago by TicketCleanup
- Version 3.3.8.1 deleted
comment:2 Changed 12 years ago by Valik
- Resolution set to Rejected
- Status changed from new to closed
You can obtain the local MAC address in other ways.
comment:3 Changed 12 years ago by anonymous
Not the local mac. take the code below as example
UDPStartup()
$Broadcast=UdpOpen("255.255.255.255", 69, 3)
if @Error <> 0 Then
Msgbox(0,"",@error)
Exit
EndIf
UDPSend ($Broadcast,"data")
While 1
$data = UDPRecv($Broadcast, 200, 3)
If $data <> "" Then
; MsgBox(0, "UDP DATA", $data[0], 1)
EndIf
Wend
Func OnAutoItExit()
UDPCloseSocket($Socket)
UDPShutdown()
EndFunc
In this case your broadcasting and getting response from clients. If you want to obtain the MAC of clients which is clearly in all the incoming traffic you can not via autoit. If you just set a flag for the incomming connection to have the mac of connected client it would be very helpfull for building server with clients.
comment:4 Changed 12 years ago by Valik
The MAC address does not exist on the same layer as the UDP socket. What you want is ARP. We will not be building ARP into AutoIt nor will we add extensions to other protocols to have limited ARP capabilities.
Guidelines for posting comments:
- You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
- In-depth discussions should take place on the forum.
For more information see the full version of the ticket guidelines here.
Automatic ticket cleanup.