zektbach / oscp5

Automatically exported from code.google.com/p/oscp5
0 stars 0 forks source link

Tcp listeners break on null pointers #5

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a new OscP5 instance in TCP mode: tcp = new OscP5(this, TCP_PORT, 
OscP5.TCP);
2. Try to list the listeners: println(tcp.tcpServer().getListeners());
3. TaDa! Exception in thread "Animation Thread" java.lang.NullPointerException
    at netP5.TcpServer.getListeners(Unknown Source)

What is the expected output? What do you see instead?
I would expect to listeners list to be printed. I would want to listen for 
event and status updates,
especially when a new TcpClient connects. I have yet to find a way to do so.

What version of the product are you using? On what operating system?
OscP5 0.9.8 on OSX 10.8.4

Please provide any additional information below.
I'd like to simple have a callback/event when a new TcpClient connects to a 
TcpServer using the above constructor.

Original issue reported on code.google.com by Orgi...@gmail.com on 6 Jul 2013 at 3:39