FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Programming Questions & Help
   Syntax
(Moderators: fry, REAS)
   basic terminal (networking)
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: basic terminal (networking)  (Read 293 times)
madmerv
Guest
Email
basic terminal (networking)
« on: Nov 13th, 2003, 2:57am »

i'm having trouble with large datasets from streams using text; is there a buffer limit to the net variable?   what are the specific qualities of this variable; is this a method or a constructor; does it come as an array of bytes or a string?  (?)
 
this code just plumb don't work:
 
 
String[] data;  // Array to hold the incomming data from the net
BFont Univers45;
 
void setup()
{
  size(640, 480);
  noStroke();
  background(0,0,0);  
  Univers45 = loadFont("Univers45.vlw.gz");
  textFont(Univers45,20);
  status("Reading data from black-ice.psc.edu iam daemon." );
  text( "LOADING", 280, 240 );
  textFont(Univers45,14);  
 
  beginNet("black-ice.psc.edu", 25004);
}
 
public void netEvent()  
{
  if (net != null)  
  {
    data = net;  // Split and parse the data received in net into lines
  }
}
 
int x;
 
void loop()  
{  
    println(net);
}
 
« Last Edit: Nov 13th, 2003, 3:10am by madmerv »  
benelek

35160983516098 WWW Email
Re: basic terminal (networking)
« Reply #1 on: Nov 13th, 2003, 11:55am »

hi mad Merv.
 
net is a String, and you've defined data as an array. so data=net won't work.
 
feel free post some more code, and we'll help you get started.
 
~jacob
 
fry


WWW
Re: basic terminal (networking)
« Reply #2 on: Nov 13th, 2003, 3:44pm »

also note that net is a little horked right now. you might be better off using java networking stuff if you want to do anything more complex than what's in the examples.
 
Pages: 1 

« Previous topic | Next topic »