Restructurisations, cleanups and few bugfixes

This commit is contained in:
Vladimir 'phcoder' Serbinenko committed 2011-07-02 22:13:33 +02:00
1 parent c4d038f632
commit 7e0c2d162a
6 files changed
+251 -178

No files matched your search

+16
View File
@@ -11,6 +11,22 @@ struct udphdr
grub_uint16_t chksum;
} __attribute__ ((packed));
grub_net_socket_t
grub_net_udp_open (char *server,
grub_uint16_t out_port,
grub_err_t (*recv_hook) (grub_net_socket_t sock,
struct grub_net_buff *nb,
void *data),
void *recv_hook_data);
static inline void
grub_net_udp_close (grub_net_socket_t sock)
{
grub_net_socket_unregister (sock);
grub_free (sock);
}
grub_err_t
grub_net_send_udp_packet (const grub_net_socket_t socket , struct grub_net_buff *nb);