Welcome! Log In Create A New Profile


Simple Network connection

Posted by burningman 
Re: Simple Network connection
December 08, 2010 08:10AM
You shouldn't be checking if net_connect returns -1 for failure, you should be checking if it returns <0. Libogc's networking functions return error status directly rather than setting errno and returning -1.
Re: Simple Network connection
December 09, 2010 12:17AM
Are you sure your computer is actually connecting? I know I've had trouble before with connect exiting before it actually connects. Then it seems like it connects, but it really doesn't, leaving your wii without anything to connect to.
Make sure your connect function on your PC server looks something like this:
if(listen(mySocket,1)!=SOCKET_ERROR){	//Listen and wait for incoming connections, 1 backlog
	newConnection = accept(mySocket,NULL,NULL);
        // Your Code Here
Sorry, only registered users may post in this forum.

Click here to login