If you want to use the strings, just declare current as: char *current; (pointer to a char array aka c string). Since you never allocate memory, and it will just point to string constants, you don't have to worry about memory leaks with this. But for advanced string operations, you need to do memory management. So you might want to look into malloc, calloc, realloc, free and memset.by WiiGent - Coding
I don't know why it's just sockaddr_in in the PCToWii code, but there's no typedef for sockaddr, sockaddr_in and hostent, and probably some other structs. Try using struct sockaddr_in instead. struct sockaddr_in { u8 sin_len; u8 sin_family; u16 sin_port; struct in_addr sin_addr; s8 sin_zero[8]; }; If you don't have experience writing networking code, yoby WiiGent - Coding
I think you want to import network.h, it should be in the libogc include dir (of you have the libogc source, it is in the lwip, lightweight ip, directory). Call the function net_init() which returns a signed int, non-zero is an error. net_socket( int, int, int ); returns a socket file descriptor, INVALID_SOCKET upon error. Same as BSD sockets in general, but all functions are prefixed with nby WiiGent - Coding
Hi, I'm a complete n00b when it comes to coding for the Wii, but I do have a lot of java experience and a little C++ experience. Now, I'm trying to grab the mac address of the wii, instead of having the user input it (I'm working on making a Mii editor for the Wii, which among other things will let you import foreign Miis as local Miis, this way you don't have to transferby WiiGent - Coding