gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > WIFIlib

#138942 - bulk_4me - Fri Aug 31, 2007 1:24 am

So... mmm I'm trying to send files over the network via TCP, and it works like a charm for small files but on larger files the DS is not working at around 9 MB, it will stop listening or just disconnects from the network. Anyone knows is there any workarounds to this issue? I'm using version dswifi-0.3.2 and PALib.

#138967 - jerbob92 - Fri Aug 31, 2007 10:17 am

send it in pieces?

#139004 - PypeBros - Fri Aug 31, 2007 5:44 pm

A priori, the wifi lib should not be sensitive to the amount of data already transferred. If you're working with an HTTP server, you might want to support the "byte-range" request option to 'continue transfer'.

Honnestly, i'd double-check i'm not having a leaking buffer or something alike ... and i'd definitely ensure i'm not trying to store it all in RAM (yeah, i know, that's plain obvious).
_________________
SEDS: Sprite Edition on DS :: modplayer

#139006 - bulk_4me - Fri Aug 31, 2007 6:04 pm

Yeah, I'm sending 512 bytes of data on each packet and I'm flushing the buffer every time I reach 4 KB, unless I'm missing something when you say not storing all in ram.