Wednesday, 07 January 2009
 
  Home arrow Forum  
Main Menu
Home
News
Forum
Documentation
Download
Links
Administrator
Login Form
Welcome, Guest. Please login or register.
January 07, 2009, 05:48:59 PM
Username: Password:
Login with username, password and session length

Forgot your password?
Wifi - "Buffer"
DSLua Community
Welcome, Guest. Please login or register.
January 07, 2009, 05:48:59 PM
1724 Posts in 316 Topics by 10134 Members
Latest Member: KetteetsReulk
DSLua Community  |  DSLua - Best scripting language for Nintendo DS  |  Need Help?  |  Wifi - "Buffer" « previous next »
Pages: [1]
Author Topic: Wifi - "Buffer"  (Read 345 times)
Xera
New Moon
*
Posts: 1


« on: May 31, 2008, 06:31:16 AM »

When calling Socket:Send, what is "buffer" supposed to be?

I tried sending "hi" but my PC application never receives it.

Code:
top = Screen.LoadTextBG( )

Screen.Initialize( 1, top )

top:PrintXY( 0, 0, "Connecting.." )

if Wifi.ConnectWFC( ) then
sock = Wifi.InitTCP( "192.168.1.102", 9001 )
top:PrintXY( 0, 0, "Connected." )
sock:Send( "hi" )

while not Stylus.Down( ) do end
while Stylus.Down( ) do end
else
top:PrintXY( 0, 0, "Could not connect." )
end

top:PrintXY( 0, 1, "Disconnected." )

Wifi.Disconnect( )
Logged
Pages: [1]
« previous next »
    Jump to:  



    (C) 2009 DSLua

    DSLua - Best scripting language for Nintendo DS home-brew!