Page 1 of 1

[devkitPPC/libogc] struct sockaddr_storage is missing

Posted: Thu Jun 13, 2013 2:05 am
by Midar
In network.h, there's only struct sockaddr and struct sockaddr_in, but no struct sockaddr_storage. struct sockaddr_storage is defined by POSIX. It should be a struct big enough to hold any sockaddr_* struct in the system. The following simple definition will suffice:

Code: Select all

struct sockaddr_storage {
  u8 ss_len;
  u8 ss_family;
  u8 ss_data[14];