Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Networking | Forum profile

Forum profile page for Networking on http://www.sun.com. This report page is the aggregated overview from a single forum: Networking , located on the Message Board at http://www.sun.com. This forum profile page summarizes the general forum statistics such as: Users Activity, Forum Activity, and Top Authors, which are reported in either a table or graph below for a given reporting time period. Additional forum profile information for "Networking " on the Message Board at http://www.sun.com is also shown in the following ways:

1) Latest Active Threads
2) Hot Threads for Last Week

Warning: These statistics are generated using 'best efforts' and can experience delays and reporting errors at times. Please note that such statistics do not constitute a forum's popularity and/or exact posting volumes at any given reporting period.

Site: Sun Forums - Networking
(site profile, domain info sun.com)
Title: Networking
Url: http://forums.sun.com/forum.jspa?forumID=536
Users activity: 31 posts per thread
Forum activity: 41 active thread during last week
 

Posting activity on Networking :

  Week Month 3 Months
Threads: 41 127 397
Post: 124 407 1,221
 

Networking Posting activity graph:

Posts by:  day  week  month 

Top authors during last week:

Name
Posts
jverd
18
user's latest post:
NAT
Published (2009-11-28 12:39:00)
mgs_saladin wrote: My application does work for public IPs but doesnt work with computers behind NAT as they are in local private networks Sorry, that sentence is meaningless. Even if you replace "NAT" with "router," there's nowhere near enough information provided. Go back and re-read my previous post very carefully. (def. of NAT, as I know it). No. I want to make the application work for those two. Understand from...
ejp
17
user's latest post:
socket bind throws socket closed
Published (2009-11-29 15:07:00)
Works for me. You must be trying to re-use the socket after it's been closed, like the exception says. You can't do that, you have to create a new Socket.
tschodt
13
user's latest post:
NAT
Published (2009-11-29 07:35:00)
mgs_saladin wrote: is this true that within same connection on same port the server may respond and send messages to client (that initiated the connection) ? You have a server application accepting TCP socket connections on a publicly available IP address. The server application creates a ServerSocket on the port in question and listens for incoming connections. The client (behind NAT) opens a socket connection to the server. The server...
DrClap
10
user's latest post:
Need a simplest tcp chat program
Published (2009-11-28 21:58:00)
Yup. Both of those things open something, do something with it, then close it. Then there's no more code for them to execute, so what did you expect to happen? So instead of writing bits of code at random, you should read the Java Networking Tutorial. I could look it up but I will just tell you that the google keywords are "Java Networking Tutorial". Look for the links to Sun tutorials in preference to others.
legsmacgee
8
user's latest post:
Sharx Network Camera
Published (2009-11-24 20:27:00)
Okay, a little more progress. The following code effectively captures a jpeg from the camera: URL u = new URL( "http://192.168.1.105/stream.jpg" ); URLConnection uc = u.openConnection(); InputStream s = uc.getInputStream();     File f = new File( "/users/jmock/desktop/streamer2.jpg" ) ; DataOutputStream outdata = new DataOutputStream( new FileOutputStream(f));   while ( true ) {...
mgs_saladin
6
user's latest post:
question about java-based server...
Published (2009-11-28 11:20:00)
Hello, I am working on a Java applet application and would like to choose a Java-based scalable server framework to use within my applcation. I have found a few like xsocket or QuickServer and have a question about other. And, also, which is the one You may advise? Yours sincerely, Slawek
Jadz_Core
4
user's latest post:
Need help choosing a design
Published (2009-11-27 01:05:00)
I actually have dedicated lines of 10GB/s, in this case hardware is not the object. I am thinking however of cutting it up into smaller servers, because of the cost. Edited by: Jadz_Core on Nov 27, 2009 1:05 AM
kajbj
4
user's latest post:
Need help choosing a design
Published (2009-11-27 00:48:00)
Jadz_Core wrote: The server cycles around 600ms. Each cycle, (assuming a full server, and some moderate action going on) approximately 3GB of data could be written out, and 1.5GB could be read in. (Yes this is a very large application, and the internet usage costs a LOT) Are those numbers correct? An output of 3 GB each 600 ms = 5GB data per second = 40 Gigabit. That's a huge load, I would split that onto more than one server.
Frank_Natoli
4
user's latest post:
Java applet hangs on new Socket...
Published (2009-11-27 12:56:00)
Had to change C:\Program Files\Java\jre6\lib\security\java.policy to allow connect to localhost:30000 then all OK.
Peter__Lawrey
3
user's latest post:
Need help choosing a design
Published (2009-11-26 22:44:00)
The simplest design if you have less than 500 clients is to have a cached thread pool with two threads per connection, one for reading and another for writing. Use Executors.newCachedThreadPool(). This will be efficient enough if you keep things simple. You need additional threads to simulate any active content in your game. I suggest you keep these separate.
 

Latest active threads on Networking ::

Sun Forums
Started 2 days, 11 hours ago (2009-11-29 15:07:00)  by ejp
Works for me. You must be trying to re-use the socket after it's been closed, like the exception says. You can't do that, you have to create a new Socket.
Thread:  Show this thread (2 posts)   Thread info: socket bind throws socket closed Size: 189 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Re: socket bind throws socket closed :: Networking
 :: Sun Forums"
Sun Forums
Started 1 week ago (2009-11-24 04:11:00)  by tschodt
Your client is behind NAT and you are using plain (TCP) sockets. Have the client connect to the server have the server accept the connection now the server can send data back to the client though the socket connection that was initiated by the client you do not need another socket.
Thread:  Show this thread (13 posts)   Thread info: NAT Size: 345 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Re: NAT :: Networking
 :: Sun Forums"
Sun Forums
Started 3 days, 22 hours ago (2009-11-28 03:35:00)  by JoachimSauer
You try to implement HTTP with connection keep alive, but your code seems to be confused. First of all: I don't think it's a smart idea to have all your headers in a .txt file. Some of them influence how the HTTP protocol goes immensely. Especially the "Connection: keep-alive". Next: You have too many "out.println()" in your code. For example when you send cookies, you always send an ...
Thread:  Show this thread (3 posts)   Thread info: Unable to request more than once using one socket Size: 1,298 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Re: Unable to request more than once using one socket :: Networking
 :: Sun Forums"
Sun Forums
Started 4 days, 17 hours ago (2009-11-27 09:01:00)  by DrClap
Fareezzz wrote: I'm a beginner. I need a simple tcp chat application... I had a program which send a message from server to client. I tried to convert it into a chat application. But thats not working. This is the code which i tried to change. Change it into an tcp chat for me please. No, you're the one who wanted to write the program. There are plenty of canned chat programs if ...
Thread:  Show this thread (4 posts)   Thread info: Need a simplest tcp chat program Size: 694 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Re: Need a simplest tcp chat program :: Networking
 :: Sun Forums"
Sun Forums
Started 5 days, 7 hours ago (2009-11-26 19:03:00)  by ejp
(a) Is the applet being loaded from 'localhost'? (b) Is the applet signed? (c) Are you catching RuntimeExceptions? or specifically java.security.SecurityException or AccessControlException?
Thread:  Show this thread (11 posts)   Thread info: Java applet hangs on new Socket under IE8 Size: 238 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Re: Java applet hangs on new Socket under IE8 :: Networking
 :: Sun Forums"
Sun Forums
Started 5 days, 3 hours ago (2009-11-26 22:44:00)  by Peter__Lawrey
The simplest design if you have less than 500 clients is to have a cached thread pool with two threads per connection, one for reading and another for writing. Use Executors.newCachedThreadPool(). This will be efficient enough if you keep things simple. You need additional threads to simulate any active content in your game. I suggest you keep these separate.
Thread:  Show this thread (7 posts)   Thread info: Need help choosing a design Size: 418 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Re: Need help choosing a design :: Networking
 :: Sun Forums"
Sun Forums
Started 5 days, 17 hours ago (2009-11-26 09:11:00)  by DrClap
An explanation of "doesn't work" and "cannot take place" would help. Error messages? Programs hang? Computers explode in flames?
Thread:  Show this thread (6 posts)   Thread info: SSL Socket connection doesn't work Size: 163 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Re: SSL Socket connection doesn't work :: Networking
 :: Sun Forums"
Sun Forums
Started 5 days, 12 hours ago (2009-11-26 13:55:00)  by ejp
Note : This thread was originally posted in the JavaServer Faces forum, but moved to this forum for closer topic alignment.
Thread:  Show this thread (3 posts)   Thread info: mapping url to ip address Size: 255 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: This Thread is now moved :: Networking
 :: Sun Forums"
 

Hot threads for last week on Networking ::

Networking
Started 1 week, 1 day ago (2009-11-23 09:59:00)  by DrClap
Presumably because an exception is being thrown and because: } catch (IOException e) { } you are ignoring it.
Thread:  Show this thread (15 posts)   Thread info: Sharx Network Camera Size: 369 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Re: Sharx Network Camera :: Networking
 :: Sun Forums"
Networking
Re: NAT - 13 new posts
Started 1 week ago (2009-11-24 04:11:00)  by tschodt
Your client is behind NAT and you are using plain (TCP) sockets. Have the client connect to the server have the server accept the connection now the server can send data back to the client though the socket connection that was initiated by the client you do not need another socket.
Thread:  Show this thread (13 posts)   Thread info: NAT Size: 345 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Re: NAT :: Networking
 :: Sun Forums"
Networking
Started 5 days, 7 hours ago (2009-11-26 19:03:00)  by ejp
(a) Is the applet being loaded from 'localhost'? (b) Is the applet signed? (c) Are you catching RuntimeExceptions? or specifically java.security.SecurityException or AccessControlException?
Thread:  Show this thread (11 posts)   Thread info: Java applet hangs on new Socket under IE8 Size: 238 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Re: Java applet hangs on new Socket under IE8 :: Networking
 :: Sun Forums"
Networking
Started 5 days, 3 hours ago (2009-11-26 22:44:00)  by Peter__Lawrey
The simplest design if you have less than 500 clients is to have a cached thread pool with two threads per connection, one for reading and another for writing. Use Executors.newCachedThreadPool(). This will be efficient enough if you keep things simple. You need additional threads to simulate any active content in your game. I suggest you keep these separate.
Thread:  Show this thread (7 posts)   Thread info: Need help choosing a design Size: 418 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Re: Need help choosing a design :: Networking
 :: Sun Forums"
Networking
Started 1 week, 1 day ago (2009-11-23 12:07:00)  by stdunbar
It may not be a security issue directly but this isn't going to work outside of a private LAN. In effect you're talking about either multicast or broadcast. Neither of these protocols are going to be passed by any device connected to the internet. The answer would be TCP repeaters. A repeater would sit each network that you wanted to "join" together. The would be configured to listen ...
Thread:  Show this thread (7 posts)   Thread info: UDP Applet problem Size: 755 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Re: UDP Applet problem :: Networking
 :: Sun Forums"
Networking
Started 5 days, 17 hours ago (2009-11-26 09:11:00)  by DrClap
An explanation of "doesn't work" and "cannot take place" would help. Error messages? Programs hang? Computers explode in flames?
Thread:  Show this thread (6 posts)   Thread info: SSL Socket connection doesn't work Size: 163 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Re: SSL Socket connection doesn't work :: Networking
 :: Sun Forums"
Networking
Started 1 week, 5 days ago (2009-11-20 01:17:00)  by ejp
java.net.NetworkInterface.getNetworkInterfaces() .. .getInterfaceAddresses() ... .getNetworkPrefixLength()
Thread:  Show this thread (19 posts)   Thread info: How to find the Subnet Mask address though java Size: 141 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Re: How to find the Subnet Mask address though java :: Networking
 :: Sun Forums"
Networking
Started 4 days, 17 hours ago (2009-11-27 09:01:00)  by DrClap
Fareezzz wrote: I'm a beginner. I need a simple tcp chat application... I had a program which send a message from server to client. I tried to convert it into a chat application. But thats not working. This is the code which i tried to change. Change it into an tcp chat for me please. No, you're the one who wanted to write the program. There are plenty of canned chat programs if ...
Thread:  Show this thread (4 posts)   Thread info: Need a simplest tcp chat program Size: 694 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Re: Need a simplest tcp chat program :: Networking
 :: Sun Forums"
Networking
Started 1 week, 3 days ago (2009-11-21 13:38:00)  by DrClap
Sounds like you've been using text-based IO methods for everything, then. Like Readers and Writers. Don't do that. Use InputStreams and OutputStreams, and use them for everything.
Thread:  Show this thread (10 posts)   Thread info: UDP and Binary document transfer Size: 214 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Re: UDP and Binary document transfer :: Networking
 :: Sun Forums"
Networking
Started 5 days, 12 hours ago (2009-11-26 13:55:00)  by ejp
Note : This thread was originally posted in the JavaServer Faces forum, but moved to this forum for closer topic alignment.
Thread:  Show this thread (3 posts)   Thread info: mapping url to ip address Size: 255 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: This Thread is now moved :: Networking
 :: Sun Forums"