FAQ
 
 
Cover  \ Exhibition  \ Learning  \ Reference  \ Download  \ Discourse   
      Language \ Environment \ Libraries \ Comparison
 
   
   
Back  
   
  Reference for Processing (BETA) version 91+. If you have a previous version, use the reference included with your software. If you see any errors or have any comments, let us know.  
Class   Server
   
Name  

write()

   
Examples  
import processing.net.*; 
Server myServer; 
int val = 0; 
 
void setup() { 
  size(200, 200); 
  // Starts a myServer on port 5204 
  myServer = new Server(this, 5204); 
} 
 
void draw() { 
  val = (val + 1)%255; 
  background(val); 
  myServer.write(val); 
} 
 

Description   Writes data to all connected clients.
   
Syntax  
server.write(data)
   
Parameters  
server   any variable of type Server

data   int, char, bytes[], String: The data to send

   
Usage   Web & Application
   
 
 






   
 
Updated: Fri Jul 15 16:41:10 PDT 2005
 
 








Creative Commons License
 
  Processing is an open project initiated by Ben Fry and Casey Reas  
  © Info  
->     Processing is an open project initiated by Ben Fry and Casey Reas     © Info   ">and Casey Reas     © Info   nt> and Casey Reas     © Info   ource.org/cc/Notice" /> -->     Processing is an open project initiated by Ben Fry and Casey Reas     © Info   native file format.