| Language \ Environment \ Comparison |

| Index

| The Processing 1.0 _ALPHA_ Reference is a work in progress. If you see any errors or have any comments, please write to: reas at groupc.net

Name |  | ### netEvent()
Examples |  |
    int val;

    void setup()
    {
      beginNet("localhost", 5204);
    }

    void loop()
    {
      background(val);
    }

    // Called every time there is data available to read
    void netEvent()
    {
      // Gets the data from the server
      val = Integer.parseInt(net);
    }
Description |  | In a client application the netEvent() function is called when there is new data available to read.
Syntax |  |
    netEvent()
Returns |  | None
Usage |  | Application
Related |  | beginNet() endNet() netWrite() net

| © 2003- 2001 Massachusetts Institute of Technology and Interaction Design Institute Ivrea |
| Processing is an open project initiated by Ben Fry and Casey Reas |