Tagged Questions
0
votes
0answers
10 views
Unexpected behavior of tcp server: why adding delay increases ability to service clients?
Good day everybody!
My question is about NIO based server and my situation is the following: server reads messages from 100 clients (100 client threads) which send 100 messages each. So, total ...
0
votes
1answer
17 views
Sending Strings Encoded by a secret key over TCP stream BadPaddingException with Windows
I think I'm having a problem specific to the Windows operating system (windows 7) using the writeUTF() and readUTF() methods for sending encrypted strings over a TCP connection.
The client and server ...
1
vote
1answer
23 views
Java TCP socket server with PHP client?
Hey there,
I am developing an TCP socket server in Java. The client(s) must connect to a webpage (in PHP)
Well, here come's my trouble.. They can connect to the specified host, but the server can't ...
0
votes
4answers
51 views
InputDataStream.available() is always 0 Java Socket Client
Why does this part of my client code is always zero ?
InputStream inputStream = clientSocket.getInputStream();
int readCount = inputStream.available(); // >> IS ALWAYS ZERO
byte[] recvBytes = ...
0
votes
1answer
18 views
Java TCP sending first message, then infinite wait
My Issue based on code below:
Run TCPServer.java
then Run TCPClient.java
I expect to have the client print out
Server Said(1): HEY DUDE 1
Server Said(2): HEY DUDE 2
... but it just stays on HEY ...
-2
votes
1answer
34 views
Android send data via socket [closed]
I would like to send a simple date through tcp. I working with threads, but I dont know why but when i try to run my code that is stop imediatelly here is that. I have already set the permissons as ...
0
votes
1answer
25 views
java socket sending and receiving
since hours I am thinking about how I should use Java Sockets to send and receive data. I hope you can help me finding a good way to do it.
I have build a Server/Client structure where the client ...
0
votes
1answer
17 views
Android TCP Client/Server not passing messages properly (Only first received)
I have created two android applications, a client and a server, utilizing TCP to communicate across devices. On the server, I have this code to listen for TCP communication:
private class StartServer ...
0
votes
3answers
40 views
Read Data from a Java Socket
I have a Socket listening on some x port.
I can send the data to the socket from my client app but unable to get any response from the server socket.
BufferedReader bis = new BufferedReader(new
...
0
votes
0answers
13 views
Is it possible to define WSDL for a port listener?
I have a TCP-IP port listening implementation that basically receives an xml and sends an xml. Is it possible to define a wsdl for this service without altering the implementation?
0
votes
2answers
30 views
Desktop TCP Streaming (java)
I want to stream desktop screen captures using sockets.
I don't know the exact way to do this, so I went with AWT's robot :)
Robot robot = new Robot();
BufferedImage image = ...
0
votes
0answers
40 views
Cannot get text value from BufferedReader [closed]
I have created an Android TCP server as well as a client. Both can communicate fine (in the sense that sent messages are registering).
Below, is the code I use to send a message from the client to ...
-1
votes
0answers
47 views
Any java/python socket server framework I can reuse for my multiple chess server (1000+ clinets online)? [closed]
I am trying to rebuild my chess server , previously I implement it based on the open source lighthtttpd, but Now I find maybe "C" is not a good choice to process the game logic, so I am seeking to ...
0
votes
2answers
82 views
Setting up a multi-client/server TCP connection in Java
I'm trying to create a multi-client/server application in Java. I'm having quite some issues because my threads seem to get entangled... Here's what I'm trying to do.
I have a Server-class that ...
-2
votes
0answers
37 views
Send multiple TCP/UDP connections to occupy the possible ports java [closed]
does anyone know how I can occupy all possible ports and to keep them alive, in the Java programming language?The picture below is what I need to create in Java. I'm not sure which way I should do ...