Module Joyau::Wlan
In: Drawable.cpp

Ruby’s stdlib includes a Sock class, as well as classes easying the use of HTTP and FTP protocols. These classes can be used, but the PSP requires some initialisation before being able to use them.

This module contains the basic methods which can allow you to use theme. This means :

  Loading net modules
  Connecting to one of the access points
  Checking the access points

Once you’re connected, everything is transparent: you can use sockets as usual.

Methods

button_enabled?   configs   connect   connected?   disconnect   init   ip   stop  

Public Class methods

Returns whether the wlan button is enabled.

[Source]

/*
  Returns whether the wlan button is enabled.
*/
VALUE Wlan_button_enabled(VALUE self) 

Returns the wlan access points in an array of arrays. It returns something in the following form :

  [
    ["ip", "name"], # Access point at 1
    ["ip", "name"], # Access point at 2
    ["ip", "name"], # Access point at 3
    ...
  ]

[Source]

/*
  Returns the wlan access points in an array of arrays.
  It returns something in the following form :
    [
      ["ip", "name"], # Access point at 1
      ["ip", "name"], # Access point at 2
      ["ip", "name"], # Access point at 3
      ...
    ]
*/
VALUE Wlan_configs(VALUE self) 

Connects to a given acces point. You can specify a timeout in seconds. If the connection isn’t established after the specified timeout, a TimeoutError is raised.

[Source]

/*
  call-seq: connect(access_point, timeout)

  Connects to a given acces point. You can specify a timeout in seconds.
  If the connection isn't established after the specified timeout,
  a TimeoutError is raised.
*/
VALUE Wlan_connect(VALUE self, VALUE config, VALUE timeout) 

Returns whether we’re connected to an acces point.

[Source]

/*
  Returns whether we're connected to an acces point.
*/
VALUE Wlan_is_connected(VALUE self) 

Ends a Wlan connection.

[Source]

/*
  Ends a Wlan connection.
*/
VALUE Wlan_disconnect(VALUE self) 

Inits the wlan connection. You have to call this before calling the socket function.

[Source]

/*
  Inits the wlan connection. You have to call this before calling the socket
  function.
*/
VALUE Wlan_init(VALUE self) 

Returns our IP.

[Source]

/*
  Returns our IP.
*/
VALUE Wlan_ip(VALUE self) 

Unlods net modules.

[Source]

/*
  Unlods net modules.
*/
VALUE Wlan_stop(VALUE self) 

[Validate]