Modify

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#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 by TicketCleanup, 14 years ago

Version: 3.3.8.1

Automatic ticket cleanup.

comment:2 by Valik, 14 years ago

Resolution: Rejected
Status: newclosed

You can obtain the local MAC address in other ways.

comment:3 by anonymous, 14 years ago

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)

FileWrite( $data[0], $data[1], $data[2])

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 by Valik, 14 years ago

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.

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.