Results 1 to 1 of 1
Thread: Socket
- 12-20-2009, 01:31 PM #1
Member
- Join Date
- Nov 2009
- Posts
- 12
- Rep Power
- 0
Socket
This works fine, the socket connected and join the channel.Java Code:class jProxyScanner { public static void main(String[] args) throws IOException { try { jProxy t = new jProxy("irc.freenode.net",7000,"#test"); t.connect(); } catch (NullPointerException e) { System.out.println(e); } } }
But when I added
The second object never get executed, the code stuck in here I think,Java Code:class jProxyScanner { public static void main(String[] args) throws IOException { try { jProxy t = new jProxy("irc.freenode.net",7000,"#test"); t.connect(); jProxy s = new jProxy("irc.freenode.net",7000,"#test"); s.connect(); } catch (NullPointerException e) { System.out.println(e); } } }
Anyone knows how to fix this?Java Code:while ((sockDataCheck = reader.readLine()) != null) { String[] data = sockDataCheck.split("\\s"); bunch of numeric detection and ping reply in here }
Thank you.
Similar Threads
-
append response to the request from Socket and write to another socket
By vaibhav_singh_vs@yahoo.co in forum NetworkingReplies: 3Last Post: 04-17-2009, 07:02 PM -
help about Socket
By fahien_akim in forum New To JavaReplies: 0Last Post: 04-16-2009, 10:41 AM -
Socket
By rob in forum New To JavaReplies: 1Last Post: 03-19-2009, 02:24 PM -
Socket ?
By barusk in forum NetworkingReplies: 0Last Post: 03-05-2009, 04:51 PM -
Socket
By vortex in forum New To JavaReplies: 2Last Post: 05-25-2008, 06:41 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks