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  

net

   
Examples  
int val; 
 
void setup() { 
  beginNet("localhost", 5204);	 
} 
 
void loop() { 
  // Sets the background to the value stored in val 
  background(val);		 
} 
 
void netEvent() { 
  // Net contains the last value readed from the net 
  val = Integer.parseInt(net);	 
} 

Description   Contains the most recent data from the server. This data is always a String and may be converted to an integer using Integer.parseInt(net).
   
Syntax  
net
   
Parameters  
net   String: most recent data from the server

   
Returns   None
   
Usage   Application
   
Related   beginNet()
endNet()
netWrite()
netEvent()
   
© 2003- 2001 Massachusetts Institute of Technology and Interaction Design Institute Ivrea
Processing is an open project initiated by Ben Fry and Casey Reas