[devkitPPC/libogc] struct sockaddr_storage is missing

Post Reply
Midar
Posts: 4
Joined: Thu Jun 13, 2013 1:51 am

[devkitPPC/libogc] struct sockaddr_storage is missing

Post by Midar » Thu Jun 13, 2013 2:05 am

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];
};

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests