Hi, Net_recv is stuck at just below 3mbit. Is this a common problem? Wifi g should at least get like 10-20 mbit right?by Kajos - Coding
I have the stream client working now, but if I turn up the frames from 5fps (640x480) to 10 fps or more it hangs and returns to HC. Any ideas? 320x240 at 20fps holds pretty steady as well...by Kajos - Coding
QuoteYou increment k, then you check the same area of memory again in your memchr() function. Also, memchr is not the best function to use here. Try using memcmp. Thanks, did'nt see that one. Fixed it now. I guess it would always return null and therefor give me wrong readings? Shouldn't it cause an exception when trying to dump the image when it's pointing to null?by Kajos - Coding
I'm trying to locate the start of the JPEG with a searchfunction: char* findImage(const char * buf, int bytes_read) { char * p = buf; char find[2]; find[0]=(char)0xFF; find[1]=(char)0xD8; int k = 0; while (p = memchr(buf, find[0],bytes_read) && k < bytes_read) { if (*++p == find[1]) { return --p; } k++; } return NULL; } However it does not do so :Sby Kajos - Coding
I did a dump of my first bufferread, and I'm suspecting my wifi-connection is what is up :D Had trouble with updates as well.. So gonna try tomorrow in a new setup, will let know.by Kajos - Coding
http://pastebin.com/RsTn84Tu Edited. Now showing first frame of the MJPEG stream and had some more working as well, however its still slow and crashing after multiple frames. EDIT: crashes because of memory out. Probably because of an overuse of unfreed variables.. (?) Not used to that, heil garbage collectionby Kajos - Coding
Hello, I'm currently working on a MJPEG stream client, however I could use some help. I'm new to C so I could have made some pointer etc errors, which glad to be pointed on. EDIT: Now everything works, but i get a corrupted JPEG. Could it be because net_read gets packages with end of an image and a beginning of an image? Cause I'm not taking that into account atm.. BTW: I'by Kajos - Coding
Hey everybody, I'm struggling with SDL finding the equavalent of this piece of code: int curdirfd = open("./", O_RDONLY); if (-1 == curdirfd) { return false; } if (-1 == chdir(path.c_str())) { return false; } fchdir(curdirfd); close(curdirfd); which results to these errors: 444: error: 'chdir' was not declared in this sby Kajos - Coding
Was thinking the same but didn't wanna burst a bubble :). dan3008, share the code you don't understand and maybe someone can explain. Where did you get the source from?by Kajos - Coding
Try to look for the source of a dol launcher. Or build it yourself, I think there's something to load elfs and such in libogc if I recall correctly. Just read all the files in the dir and then check for file extensions.by Kajos - Coding
I'd just load the maps and scripts from SD. Creating a game that downloads maps needs more than just a piece of code; it needs an extra guipart for users entering their connection details, a way to store them, load them, etc.by Kajos - Coding
I compiled everything successfully, but the dol simply reboots to the homebrew channel. What can I do to check what's happening? Do I need Dolphin for this?by Kajos - Coding
Now getting undefined reference to `access' (function). c:/devkitPro/projects/stratagus-2.2.4/source/iolib.cpp:468: undefined reference to `access' c:/devkitPro/projects/stratagus-2.2.4/source/iolib.cpp:473: undefined reference to `access' script.o: In function `LoadCcl()': c:/devkitPro/projects/stratagus-2.2.4/source/script.cpp:2557: undefined reference to `accessby Kajos - Coding
Found it out, CFile was an included class but wasn't compiled with the code due to a nondefined variable. Thanks for the reply tho!by Kajos - Coding
Hello, I am getting undefined references to a CFile-object. The code I'm trying to compile is meant for linux/windows so there are some hickups in that. Anyways, anyone know what I'm doing wrong / where or how I can correct it? linking ... stratagus-2.2.4.elf ai.o: In function `SaveAi(CFile*)': c:/devkitPro/projects/stratagus-2.2.4/source/ai.cpp:505: undefined reference toby Kajos - Coding
Thanks, looked into that, but gonna settle on a FTP-host. Need to use directories etc. as well that wiiload isn't gonna provide..by Kajos - Getting Started
Hello, I am currently trying to port FreeCNC to Wii and so far seem succesful to. However I cannot test it since my Homebrew Channel (newest version i suppose since i installed few days ago) won't detect my usbpen or somin'! I put an apps folder on it, with a folder for the app and boot.dol but no go.. So can anybody give me a quick headsup on sending dols over tcp or maybe willing tby Kajos - Getting Started