|
Author |
Topic: basic terminal (networking) (Read 293 times) |
|
madmerv Guest
|
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
|
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
|
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.
|
|
|
|
|