Reference.ServerAvailable History

Hide minor edits - Show changes to markup

June 04, 2010, at 03:21 AM by Equipo Traduccion -
Changed line 32 from:

// telnet escucha por defecto en el puerto 23

to:

// telnet utiliza por defecto en el puerto 23

June 04, 2010, at 03:14 AM by Equipo Traduccion -
Changed line 26 from:

// configuración de red, el gateway (puerta de enlace) y la subred (subnet) son opcionales.

to:

// configuración de red, el gateway (puerta de enlace) y la subnet son opcionales.

June 04, 2010, at 03:14 AM by Equipo Traduccion -
Changed line 26 from:

// configuración de red, el gateway (puerta de enlace) y la subnet son opcionales.

to:

// configuración de red, el gateway (puerta de enlace) y la subred (subnet) son opcionales.

Changed line 40 from:
  // comienza a recibir a los clientes
to:
  // comienza a recibir conexiones
June 04, 2010, at 02:59 AM by Equipo Traduccion -
Changed lines 9-10 from:

Sintáxis

to:

Sintaxis

Changed lines 13-16 from:

Parametros

Ningúno

to:

Parámetros

Ninguno

June 04, 2010, at 02:57 AM by Equipo Traduccion -
Changed lines 1-2 from:

Ethernet : Server class

to:

Ethernet : clase Server

Changed lines 9-10 from:

Sintaxis

to:

Sintáxis

June 04, 2010, at 02:55 AM by Equipo Traduccion -
Changed lines 5-10 from:

Description

Gets a client that is connected to the server and has data available for reading. The connection persists when the returned client object goes out of scope; you can close it by calling client.stop().

Syntax

to:

Descripción

Obtiene un cliente que esté conectado al servidor y posea datos disponibles para lectura. Esta conexión se mantiene activa cuando el objeto-cliente obtenido salga del ámbito de la función; para cerrarla se debe realizar "client".stop().

Sintaxis

Changed lines 13-22 from:

Parameters

None

Returns

None

Example

to:

Parametros

Ningúno

Devuelve

Nada

Ejemplo

Changed line 26 from:

// network configuration. gateway and subnet are optional.

to:

// configuración de red, el gateway (puerta de enlace) y la subnet son opcionales.

Changed line 32 from:

// telnet defaults to port 23

to:

// telnet escucha por defecto en el puerto 23

Changed line 37 from:
  // initialize the ethernet device
to:
  // inicializa el dispositivo ethernet
Changed line 40 from:
  // start listening for clients
to:
  // comienza a recibir a los clientes
February 10, 2009, at 10:31 AM by David A. Mellis -
Changed lines 7-8 from:

Gets a client that is connected to the server and has data available for reading.

to:

Gets a client that is connected to the server and has data available for reading. The connection persists when the returned client object goes out of scope; you can close it by calling client.stop().

September 02, 2008, at 10:35 PM by David A. Mellis -
Changed lines 1-2 from:

Server class

to:

Ethernet : Server class

September 02, 2008, at 10:30 PM by David A. Mellis -
Added lines 1-52:

Server class

available()

Description

Gets a client that is connected to the server and has data available for reading.

Syntax

server.available()

Parameters

None

Returns

None

Example

#include <Ethernet.h>

// network configuration.  gateway and subnet are optional.
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
byte ip[] = { 10, 0, 0, 177 };
byte gateway[] = { 10, 0, 0, 1 };
byte subnet[] = { 255, 255, 0, 0 };

// telnet defaults to port 23
Server server = Server(23);

void setup()
{
  // initialize the ethernet device
  Ethernet.begin(mac, ip, gateway, subnet);

  // start listening for clients
  server.begin();
}

void loop()
{
  Client client = server.available();
  if (client) {
    server.write(client.read());
  }
}

Share