All Questions
11 questions
0
votes
0
answers
71
views
Java Socket programming java.net.ConnectException: Operation timed out
I'm new to java and building a microservice in java that reads messages from ActiveMQ and send the message as a TCP packet to another server using socker programming. I'm able to successfully read the ...
0
votes
3
answers
323
views
Why my program is going on Infinite loop when i am trying to read multiple line input from TCP Server
This is my TCP client java code:
socket = new Socket("127.0.0.1", 8088);
out = new DataOutputStream(socket.getOutputStream());
inputStream = socket.getInputStream();
inputReader = new BufferedReader(...
0
votes
1
answer
1k
views
When Idle for long time, Is it possible that Client Socket program gets disconnected but not receiving any events? [duplicate]
I've a Socket Program which acts as client. When it initializes connection, Server Sends data periodically and my program acknowledges back.
I've written my program in such a way, when there is an ...
0
votes
0
answers
104
views
The properties of objects sent through TCP socket communication in java are not changed
I'm trying to make a game using Java's socket communication facilities.
I want to send messages, scores, player names, and game inputs all at once through objects.
I tried to pass the object after ...
0
votes
0
answers
1k
views
tcp socket not connecting over wifi if device is connected with 4g connection with internet availability
I created a sample app, with just 3 buttons, Connect , send msg, disconnect.
I am using TCP server on another mobile B, (any available tcp server app or test tool app).
and our client app is on mobile ...
8
votes
2
answers
5k
views
Java TCP/IP Socket write performance optimization
Server Environment
Linux/RedHat
6 cores
Java 7/8
About application :
We are working on developing a low latency (7-8 ms) high speed trading platform using Java. Multi-leg orders are sent after algo ...
0
votes
0
answers
204
views
How to interpret a Java thread stack on SMPP protocol?
I have found that my application gets hang and does not read data from socket every few hours. In thead dump, i have found below stack trace.
"Receiver-146" daemon prio=10 tid=0x00007fb3fc010000 nid=...
0
votes
1
answer
727
views
Java communication with TCP socket and PIC stuck in read()
I try to communicate with a java application to a µController in wifi (Flyport).
I have a problem with the java application :
It first create a socket to communicate with the Flyport server, then ...
0
votes
1
answer
2k
views
Server-push or client-request? TCP or UDP?
I'd like to implement a function of realtime message such as chatting in facebook but several questions confuse me:
1. To reduce overhead of server and make it really 'realtime', I should use a full-...
1
vote
2
answers
949
views
Java Socket Client sending extra bytes to device
Currently I am working on a Java client that sends binary data commands to a device panel. I am having a strange problem that if I am sending one command per socket connection (one TCP session) all ...
0
votes
2
answers
774
views
performance issue with TCP client and server program using android and PC
I have written a java TCP server program. And I am going to run that program on my PC. I have written a java TCP client program which I will run on android emulator. I will connect to server using ip ...