Back to index




Socket:Send( buffer )

Sends data to the last IP address or URL "talked" to.

buffer is the data that is to be sent.





Socket:SendTo( ip, buffer )

Sends data to an IP address or URL.

ip is the IP address or URL that the data will be sent to. A URL must look like www.google.com and not http://www.google.com or www.google.com/index.html.
buffer is the data that will be sent.





Socket:Recv( buffer )

Receives data from the last IP address or URL "talked" to.

buffer is the variable where the data will be stored to.





Socket:RecvFrom( ip, buffer )

Receives data from an IP address or URL.

ip is the IP address or URL that the data will be received from. A URL must look like www.google.com and not http://www.google.com or www.google.com/index.html.
buffer is the variable where the data will be stored to.





Socket:Close()

Disconnects the UDP or TCP socket. Wi-fi will still be active.





Socket:GetRemoteIP()

Returns the last IP address that was communicated with.





Socket:GetLocalIP()

Returns the local IP address of the DS.


Back to index