Skip to main content

All Questions

0 votes
0 answers
106 views

java - socket gets closed while trying to read/send

I'm trying to implement a listener to a socket, using java DataSocket, so I created a new listener class which gets an ExecutorService and run on a thread of it's own. In the same class, I want to ...
Finer's user avatar
  • 19
0 votes
0 answers
65 views

Client-to-Client with server intermediary

I am trying to implement Client to Client which passes through the server. Client1 sends a line to the server and server forwards it to all the other clients. Can you point out my mistake. Nothing is ...
Ajinkya Pawar's user avatar
1 vote
1 answer
67 views

Application IncomingHandler sometimes not receiving Service message

I'm building Android app and I'm struggling with handling reconnection. So the flow is like this: 1. Connect with token you already have 2. User is connecting to server by socket.io 2.a) You have ...
susanoo's user avatar
  • 399
0 votes
0 answers
106 views

Wait until socket as service gets available

I have read about Thread sleep, Handler, Runnable, AsyncTask and TimerTask, tried Thread sleep but could not figure out how can I accomplish the task. I have implemented socket.io.client-java as ...
Rajan Sharma's user avatar
0 votes
1 answer
462 views

Android Service - SocketIO - GCM - Communicate with Activity

Hopefully this question is not too broad or too much to ask for... I am building an Android app for my office. The app is used to send message alerts (as a custom "message" object class) to all users ...
Ryan's user avatar
  • 2,008
0 votes
1 answer
84 views

Java - Chat with multiple machine

I'm not talking about room chat. What I want is that we can chat to many peeple from many machines in many JFrames and importantly at the same time, like Yahoo or Skype. I can do it when 1 machine ...
Tungshev's user avatar
2 votes
2 answers
1k views

JAVA - receiving objects using sockets and threads not working

I'm trying to get an object from the server, but it does not work. Relevant section from the server (By Debug I see that he is really sending the correct object): public static void main(String[]...
Ramz's user avatar
  • 207
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
1k views

java tcp socket can't send file to server side

I'm new to java socket programming, this program allows TCP server to have a multi-thread that can run concurrently. I try to send the txt file from one client(has another client that will sent file ...
user2799726's user avatar
4 votes
1 answer
3k views

Is it possible to simultaneousy read from and write into a java.net.Socket?

Is it possible to simultaneously read and write from a socket? I've a thread which continuously reads a socket. Since only one thread is reading from socket, read operation is thread safe. Now i've ...
HariShankar's user avatar