C# Class System.Net.SendWol

Stellt Methoden für das Senden von Wake-On-LAN-Signalen bereit.
显示文件 Open project: nikeee/wake-on-lan

Public Methods

Method Description
Send ( IPEndPoint target, System.Net.NetworkInformation.PhysicalAddress macAddress ) : void

Sends a Wake On LAN signal (magic packet) to a client.

Send ( IPEndPoint target, System.Net.NetworkInformation.PhysicalAddress macAddress, SecureOnPassword password ) : void

Sends a Wake On LAN signal (magic packet) to a client.

Send ( IPEndPoint target, byte macAddress ) : void

Sends a Wake On LAN signal (magic packet) to a client.

Send ( IPEndPoint target, byte macAddress, SecureOnPassword password ) : void

Sends a Wake On LAN signal (magic packet) to a client.

SendAsync ( IPEndPoint target, PhysicalAddress macAddress ) : Task

Sends a Wake On LAN signal (magic packet) to a client.

SendAsync ( IPEndPoint target, PhysicalAddress macAddress, SecureOnPassword password ) : Task

Sends a Wake On LAN signal (magic packet) to a client.

SendAsync ( IPEndPoint target, byte macAddress ) : Task

Sends a Wake On LAN signal (magic packet) to a client.

SendAsync ( IPEndPoint target, byte macAddress, SecureOnPassword password ) : Task

Sends a Wake On LAN signal (magic packet) to a client.

Private Methods

Method Description
GetWolPacket ( byte macAddress, byte password ) : byte[]
Send ( IPEndPoint target, byte mac0, byte mac1, byte mac2, byte mac3, byte mac4, byte mac5 ) : void
SendAsync ( IPEndPoint target, byte mac0, byte mac1, byte mac2, byte mac3, byte mac4, byte mac5 ) : Task
SendPacket ( IPEndPoint target, byte packet ) : void
SendPacketAsync ( IPEndPoint target, byte packet ) : Task

Method Details

Send() public static method

Sends a Wake On LAN signal (magic packet) to a client.
is null. An error occurred when accessing the socket. See Remarks section of for more information.
public static Send ( IPEndPoint target, System.Net.NetworkInformation.PhysicalAddress macAddress ) : void
target IPEndPoint Destination .
macAddress System.Net.NetworkInformation.PhysicalAddress The MAC address of the designated client.
return void

Send() public static method

Sends a Wake On LAN signal (magic packet) to a client.
is null. An error occurred when accessing the socket. See Remarks section of for more information.
public static Send ( IPEndPoint target, System.Net.NetworkInformation.PhysicalAddress macAddress, SecureOnPassword password ) : void
target IPEndPoint Destination .
macAddress System.Net.NetworkInformation.PhysicalAddress The MAC address of the designated client.
password SecureOnPassword The SecureOn password of the client.
return void

Send() public static method

Sends a Wake On LAN signal (magic packet) to a client.
target is null. is null. The length of the array macAddress is not 6. An error occurred when accessing the socket. See Remarks section of for more information.
public static Send ( IPEndPoint target, byte macAddress ) : void
target IPEndPoint Destination .
macAddress byte The MAC address of the designated client.
return void

Send() public static method

Sends a Wake On LAN signal (magic packet) to a client.
is null. is null. The length of the array is not 6. An error occurred when accessing the socket. See Remarks section of for more information.
public static Send ( IPEndPoint target, byte macAddress, SecureOnPassword password ) : void
target IPEndPoint Destination .
macAddress byte The MAC address of the designated client.
password SecureOnPassword The SecureOn password of the client.
return void

SendAsync() public static method

Sends a Wake On LAN signal (magic packet) to a client.
is null. is null.
public static SendAsync ( IPEndPoint target, PhysicalAddress macAddress ) : Task
target IPEndPoint Destination .
macAddress PhysicalAddress The MAC address of the designated client.
return Task

SendAsync() public static method

Sends a Wake On LAN signal (magic packet) to a client.
is null. is null.
public static SendAsync ( IPEndPoint target, PhysicalAddress macAddress, SecureOnPassword password ) : Task
target IPEndPoint Destination .
macAddress PhysicalAddress The MAC address of the designated client.
password SecureOnPassword The SecureOn password of the client.
return Task

SendAsync() public static method

Sends a Wake On LAN signal (magic packet) to a client.
is null. is null. The length of the array is not 6.
public static SendAsync ( IPEndPoint target, byte macAddress ) : Task
target IPEndPoint Destination .
macAddress byte The MAC address of the designated client.
return Task

SendAsync() public static method

Sends a Wake On LAN signal (magic packet) to a client.
is null. is null. is null.
public static SendAsync ( IPEndPoint target, byte macAddress, SecureOnPassword password ) : Task
target IPEndPoint Destination .
macAddress byte The MAC address of the designated client.
password SecureOnPassword The SecureOn password of the client.
return Task