source: ogServer-Git/src/wol.h @ 24c8b94

Last change on this file since 24c8b94 was 060e31c, checked in by OpenGnSys Support Team <soporte-og@…>, 4 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
Line 
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
10struct wol_msg {
11        char secuencia_FF[OG_WOL_SEQUENCE];
12        char macbin[OG_WOL_REPEAT][OG_WOL_MACADDR_LEN];
13};
14
15int wol_socket_open(void);
16bool wake_up_send(int sd, struct sockaddr_in *client,
17                  const struct wol_msg *msg, const struct in_addr *addr);
18bool 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.