Skip to main content

All Questions

Tagged with
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 ...
user61815's user avatar
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(...
anuj_dahal's user avatar
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 ...
Kishore Kumar Korada's user avatar
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 ...
dongryun jeong's user avatar
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 ...
Indra KP's user avatar
  • 293
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 ...
Neha Sharma's user avatar
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=...
Sagar Patel's user avatar
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 ...
Max's user avatar
  • 53
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-...
dastan's user avatar
  • 105
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 ...
zaffargachal's user avatar
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 ...
vij's user avatar
  • 143