Welcome! Log In Create A New Profile

Advanced

What's new in Libogc 1.7.1

Posted by WiiCrazy 
What's new in Libogc 1.7.1
February 27, 2009 09:30PM
Anyone examined the diffs with the previous version? Any clue to what's changed?

It seems it was released a few days ago...

[www.devkitpro.org]

Another question, I attempted to compile and run a simple wake on lan application but ogc doesn't seem to be correctly handling udp server sockets, any info regarding that? Is it a missing feature, buggy or a limitation of the wii itself?
Re: What's new in Libogc 1.7.1
February 27, 2009 09:45PM
I've gotten UDP to work quite well. Maybe paste your code here so we can look or alternately you can download WiiRadio which contains my client/server class. It's inappropriately named client.h :)
Re: What's new in Libogc 1.7.1
February 27, 2009 10:16PM
Full ported source is here,
[www.tepetaklak.com]

The crucial part is below, it fails in net_setsockopt

    bzero((char *)&sin,sizeof(sin)); /* clear sin struct */
    sin.sin_family = AF_INET;
    host2addr(&myip, &sin.sin_addr,&sin.sin_family);	/* host */
    sin.sin_port = htons(9);	/* port */
    if ((sd=net_socket(AF_INET,SOCK_DGRAM,IPPROTO_UDP)) < 0) {
	fprintf(stderr,"Can't get socket.\n %d", sd);
	exit(1);
    }
    optval = 1;
      if (net_setsockopt(sd,SOL_SOCKET, SO_BROADCAST,&optval,sizeof(optval)) < 0) {
	fprintf(stderr,"Can't set sockopt (%d).\n",errno);
	exit(1);

Here is the original unported code : [www.gcd.org]

And let me see the wiiradio code...
differing part I see it doesn't use setsockopt but use direct ipc calls I guess...
and it doesn't seem to be using udp at all... I think udp in libogc is just flawed... fixed some of my bugs in the code and did various tests... it works with tcp but it's a no go with udp... I always get -10028 after net_sendto



Edited 2 time(s). Last edit at 03/01/2009 12:38AM by WiiCrazy.
Re: What's new in Libogc 1.7.1
February 27, 2009 10:30PM
Libogc 1.7.1 = Balance Board Support
Sorry, only registered users may post in this forum.

Click here to login