AFAIK ASND_GetFirstUnusedVoice() just returns the channel number or SND_INVALID if there is no channel available. So just store this number anywhere. Another possibility would be to make the decoders use a user specified channel which would be the cleanest way in my opinion.by TekWarrior - Coding
I don't think SCTP would be any better than a custom protocol. It still is non-standard for Syslog and vanilla linux and windows installations don't support SCTP AFAIK. Plus I'd have to add SCTP support to my Wii code. I'm working on another, completely custom and really simple protocol using TCP, maybe offering secure authentication and encryption / compression if I find aby TekWarrior - Coding
The plain old syslog protocol is actually UDP only, but there is a new standard which use TCP. The drawback of the TCP standard though is that it uses XML (I took a quick glance on the public draft version of the standard), handshakes and even more data fields thus making it a quite complex protocol. However, I see the problems that arise due to the use of UDP and I am thinking of creating a simpby TekWarrior - Coding
I will take a look at it when I'm back home from university. EDIT: Okay, I tested it now and I am unable to reproduce this behaviour, as you can see here: I'm using my modified wiiload_syslog on Windows, port 514, over WiFI connections (both Wii and syslog daemon host). EDIT #2: Do you do any other networking related stuff, like connecting somewhere via TCP?by TekWarrior - Coding
I just installed a wordpress blog where I will release information about my projects for the Wii. I changed my first post accordingly. The link in the first post directs you to the syslog category for more information about that specific part.by TekWarrior - Coding
The warning can be safely ignored. The problem might be that you already have a syslog daemon running on port 514 on your system, so the wiiload one can not bind the socket to this port. Another possibility is that you can not bind to ports <= 1024 as non-root. Just be patient until I have created a way to set the port from outside the program (might do that the next days).by TekWarrior - Coding
I made some changes to the code and put it into an example project. It now supports multiple instances and should be thread-safe. You can download the new source, the modified wiiload code, the modified wiiload .exe and a .pdf with the manual atby TekWarrior - Coding
@tawi: Yes, it is Syslog_GetErrorMessage() instead of Syslog_GetErrorString() - sorry for messing this up. And yes, you need to initialize the network before using the client. I updated my post to avoid confusion among new users. I don't know of any bugs yet (except what DrTwox has mentioned, but I get to this point later), so if you find any just tell me :). Integrating a syslog server tby TekWarrior - Coding
float p1rot = (atan2(p1y - wPadp1->ir.y, p1x - wPadp1->ir.x) * 180 / PI); float ldotx = cos(p1rot - 1.5707964) * 33; // 1.5707964 = 90 degrees in radians float ldoty = sin(p1rot - 1.5707964) * 33; float rdotx = cos(p1rot + 1.5707964) * 33; float rdoty = sin(p1rot + 1.5707964) * 33; sin() and cos() expect their parameter to be in radians, not degrees - so drop the conversion afterby TekWarrior - Coding
Hi! I just wrote a small syslog client which I use for debugging and logging and thought I'd share the code in case anyone needs it. It is distributed under the MIT license, which basically means that you can do anything with it and just have to preserve the copyright notice at the top of the files. You can find the latest information as well as the downloads atby TekWarrior - Coding