Arduino

Buy | Download | Getting Started | Learning | Reference | Hardware | FAQ

Blog » | Forum » | Playground »

Reference Language (extended) | Libraries | Comparison | Board

## Ethernet library

With the Arduino Ethernet Shield, this library allows an Arduino board to connect to the internet. It can serve as either a server accepting incoming connections or a client making outgoing ones.

Download: Ethernet.zip

To install, unzip the downloaded file, and move the resulting Ethernet/ folder into the hardware/libraries sub-folder of the Arduino application folder.

#### Ethernet class

The Ethernet class initializes the ethernet library and network settings.

- begin()

#### Server class

The Server class creates servers which can send data to and receive data from connected clients (programs running on other computers or devices).

- Server()
- begin()
- available()
- write()
- print()
- println()

#### Client class

The client class creates clients that can connect to servers and send and receive data.

- Client()
- connect()
- write()
- print()
- println()
- available()
- read()
- flush()
- stop()

Reference Home

Corrections, suggestions, and new documentation should be posted to the Forum.

The text of the Arduino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.

Edit Page | Page History | Printable View | All Recent Site Changes