ServerSocket 2 « API « Java Network Q&A

Home
Java Network Q&A
1.API
2.bluetooth
3.Client
4.connection
5.Cookie
6.Development
7.Email
8.File
9.ftp
10.http
11.HttpClient
12.https
13.ip
14.Network
15.OS
16.RMI
17.Security
18.Server
19.Socket
20.tcp
21.UDP
22.url
Java Network Q&A » API » ServerSocket 2 

1. Too many files open in nio.serversocket?    forums.oracle.com

2. question about backlog in the serversocket    forums.oracle.com

public ServerSocket(5600, 5, inetAddress) , what I understand from some internet websites my serversocket will only serve a 5 stand alone connections simultaneously If that's what the internet sites say, they are wrong. (I couldn't find any that said that with a quick search: can you provide some URLs?) and the serversocket will not accept any more connection till one of ...

3. Is it possible to slow down a ServerSocket    forums.oracle.com

I have a ServerSocket which listens for messages ... each message will perform a database update. Certain times of the month, a time-initiated function spews forth messages into this ServerSocket and they come in so fast that they use up all our database connections. Is there any capability on the ServerSocket side to slow down the messages that get read in? ...

4. ServerSocket Help needed    forums.oracle.com

A ServerSocket is not limited to a single connection. Also a ServerSocket is not used to transfer data between a server and a client. A ServerSocket only accepts connections and creates a new Socket for every individual connection. So here in very short, how to use a ServerSocket. 1. Create a ServerSocket and bind it to a port. (Binding to an ...

6. ServerSocket.accept() calls 100% of CPU when one of client is down.    forums.oracle.com

I wrote a small chat program for my servers (Linux, Windows and NetWare). The program works fine when the clients normal log out from the server. But sometimes I am facing with the problem, when anybody disconnects a network cable or turns off a workstation. In this case CPU of the server is 100 % until the program automatically deletes a ...

7. Socket - connecting to ServerSocket on localaddress without knowing address    forums.oracle.com

Hi, At the moment I'm using ServerSocket to host a game on a certain port, and any clients need to know the local address of the server or it's IP to be able to connect. What I'd like to be able to do is let the client have a quick connect option where it searches for a server on the network ...

8. Using serversocket over the internet    forums.oracle.com

9. ServerSocket vs Socket    forums.oracle.com

Hi, I'm not sure what the clear difference between a ServerSocket and a Socket is. Sure I know that you're supposed to use one for a server and one for a client, but what's the difference between them functionally? Also, I'm creating a client-server program which, in terms of networking, should work just like a chat program. Now the only way ...

10. ServerSocket and Socket help    forums.oracle.com

Usually, a server does not have information about each client, so it can't initiate communications. A client would need to inquire as to whether the server as restarted, and the server would reply. In a peer-to-peer situation, where each peer has knowledge of how to initiate communications with any other peer, then the "server" peer could just send a message to ...

11. ServerSocket not sending exception    forums.oracle.com

I have a multithreaded server with clients connected to it. There is a while loop on the client side constantly reading for inputs from the server and vice versa. Now if I close the client it causes a connection reset exception on the server and I can catch it, however if I close the server, there seems to be no exception ...

12. ServerSocket Problem (need immediate solution)    forums.oracle.com

import java.io.*; import java.net.*; class ChildThread extends Thread { Socket s; int id; ChildThread(Socket ps, int pid) { s = ps; id = pid; } public void run() { try { InputStream is = s.getInputStream(); DataInputStream fromclient = new DataInputStream(is); while (true) { String str = fromclient.readLine(); if (str.equals("quit")) { fromclient.close(); break; } System.out.println("ID = "+ id + " : " ...

15. A problem of "ServerSocket" over Linux    forums.oracle.com

16. can we use ServerSocket and Socket for Wide area network?    forums.oracle.com

hi in local area network this is working //server ServerSocket ss = new ServerSocket(2346); //client String hostname = "PCNaameHere"; Socket theSocket = new Socket(hostname, 2345); then my question is some IP addresses are the same. correct me if im wrong is IP addresses thesame with TCP IP? if not where to find IP addresses that is needed to use for WAN ...

17. ServerSocket communication is erratic    forums.oracle.com

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.