DSLua Community

General DS Programming Chats => Code Hashing => Topic started by: aqouli on July 25, 2007, 11:32:51 PM



Title: DS to DS communications
Post by: aqouli on July 25, 2007, 11:32:51 PM
Greetings all!

I am aware the DSLua 0.7 has wi-fi and socket functions, but I'm still a bit clueless as to how to communicate with another DS, if this is even possible. Right now my priority is ad-hoc communications (two DSes talking to each other within the same room), but I eventually would like to figure out how to connect to another one through the internet... which confounds me at the moment.

So say for example, I'd like to send a text message from one DS to another - how would I go about this?


Title: Re: DS to DS communications
Post by: TOAST on July 26, 2007, 09:23:34 AM
You can't do the AD-hoc (yet, if even ever). And you ain't going to make it unless you're hardcore.


Title: Re: DS to DS communications
Post by: aqouli on July 26, 2007, 01:06:34 PM
I guess one can dream?

Well, with ad-hoc written off - is it still possible to do it with wi-fi?


Title: Re: DS to DS communications
Post by: TOAST on August 02, 2007, 11:27:23 PM
Yes, with wifi you can communicate DS to DS, but you'll need them both connected to the internets.


Title: Re: DS to DS communications
Post by: aqouli on August 05, 2007, 10:50:28 AM
*nods*

So as I understand it, you connect to the WFC using the Wifi.ConnectWFC() function, and then establish a socket connection with the DS you want to connect to? I just wonder if the IP of the DS I would like to connect to changes each time, or does it stay permanent. Also, what port should I use?

And as for the size of the buffer, how big can it be before I start having trouble sending it?