|
More site info...
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.
|
|
|
|
|
Posting activity on Networking
:
|
|
Week
|
Month
|
3 Months
|
|
Threads:
|
41
|
127
|
397
|
|
Post:
|
124
|
407
|
1,221
|
|
|
Networking
Posting activity graph:
|
Top authors during last week:
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...
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.
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...
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.
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 ) {...
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
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
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.
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.
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
::
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.
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.
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 ...
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 ...
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?
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.
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?
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.
|
|
Hot threads for last week on 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.
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.
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?
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.
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 ...
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?
Started 1 week, 5 days ago (2009-11-20 01:17:00)
by ejp
java.net.NetworkInterface.getNetworkInterfaces() .. .getInterfaceAddresses() ... .getNetworkPrefixLength()
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 ...
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.
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.
|
|