Last change
on this file since 0b5c081 was
060e31c,
checked in by OpenGnSys Support Team <soporte-og@…>, 5 years ago
|
#990 add wol_socket_open()
Add wol_socket_open() to initialize the WoL socket
|
-
Property mode set to
100644
|
File size:
496 bytes
|
Rev | Line | |
---|
[96b02b5] | 1 | #ifndef _OG_WOL_H_ |
---|
| 2 | #define _OG_WOL_H_ |
---|
| 3 | |
---|
| 4 | #define OG_WOL_SEQUENCE 6 |
---|
| 5 | #define OG_WOL_MACADDR_LEN 6 |
---|
| 6 | #define OG_WOL_REPEAT 16 |
---|
| 7 | |
---|
| 8 | #include <stdbool.h> |
---|
| 9 | |
---|
| 10 | struct wol_msg { |
---|
| 11 | char secuencia_FF[OG_WOL_SEQUENCE]; |
---|
| 12 | char macbin[OG_WOL_REPEAT][OG_WOL_MACADDR_LEN]; |
---|
| 13 | }; |
---|
| 14 | |
---|
[060e31c] | 15 | int wol_socket_open(void); |
---|
[96b02b5] | 16 | bool wake_up_send(int sd, struct sockaddr_in *client, |
---|
| 17 | const struct wol_msg *msg, const struct in_addr *addr); |
---|
| 18 | bool wake_up_broadcast(int sd, struct sockaddr_in *client, |
---|
| 19 | const struct wol_msg *msg); |
---|
| 20 | |
---|
| 21 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.