Questions tagged [serversocket]

ServerSocket is a java.net class that provides a system-independent implementation of the server side of a client/server socket connection.

ServerSocket is a java.net class that provides a system-independent implementation of the server side of a client/server socket connection.

A server socket's job is to set up the communication endpoint and passively wait for requests to come in over the network.

Further Reference

Related Tags

1869 questions
0
votes
1 answer

Netty ChannelRead method

I am a novice in using Netty Framework. I meet a problem, I use Netty to write ServerSocket. The goal of the Server is receiving message from a hardware.The hardware sends a byte everytime. The Server and the hardware have a protocol -- every…
jackson
  • 23
  • 5
0
votes
1 answer

Java Client/Server SSL Socket Chat

Ok pals, so I have created a java chat using TCP client/server socket. I create the server, and then i create clients that connect to the server so that they can communicate between each other through the server! The code: Server: public…
panxman
  • 11
  • 4
0
votes
3 answers

Question regarding TCP Connection Forcefully shut down

I am designing a Client Server Chat application in Java which uses TCP connection between them. I am not able to figure out how to detect at server side when a client forcefully closes down. I need this as i am maintaining a list of online clients…
Tara Singh
  • 1,821
  • 6
  • 28
  • 36
0
votes
0 answers

Message was repeat when read data from socket IOS

I have build app use socket to transfer data between two device. But i have a problem when i try to read data from socket. This is code used to read message from socket. while (1) { UInt8 bufr[802400]; int bytesRead =…
Chicken
  • 447
  • 1
  • 4
  • 8
0
votes
2 answers

Java ServerSocket and HttpServer

I want to implement a client server communication involving decent amount of data being passed. (~ 50MB) Should I implement the back end using the ServerSocket or HttpServer? What are the pointers to decide? Thanks.
LPD
  • 2,833
  • 2
  • 29
  • 48
0
votes
0 answers

Socket connection issue on 3G in android

I have developed application. I have used socket connection. I am able to open socket on wifi but unable to socket on 3G. I have googled but not got any luck. Please help me. Here is my code: SocketAddress socketAddress = new…
Shrikant Salunkhe
  • 329
  • 1
  • 4
  • 14
0
votes
4 answers

Protected abstract methods not visible in child class wrapping instance of parent

I'm trying to create a BufferedServerSocketImpl which would return a BufferedInputStream in getInputStream instead of the non-buffered one of the wrapped object (markSupported()=false), but otherwise simply forward all other calls to the wrapped…
mtsvetkov
  • 885
  • 10
  • 21
0
votes
1 answer

Internal Client on Thruway WAMP2

I am working on a sample for Internal Client + Authentication model like the one below. Now I need to retrieve a list of connected sessions and intercept the close event of a session from Internal Client. I want to ask if there's any method to…
0
votes
1 answer

Programs halts when trying to create a new Socket with existing ServerSocket

So I am running a piece of code that is supposed to create a Socket a ServerSocket, when I run my code it meets a stand still at line 14 but doesn't throw any exception. What have I missed? public class Syncronizer { InputStream instr = null; …
Swidtter
  • 83
  • 1
  • 3
  • 9
0
votes
0 answers

How to send encoded file from Delphi to Android via socket

I'm trying send encoded file from delphi to android via socket I'm using delphi xe4 here is my delphi code procedure sendData(); begin dbdata = encodeFile('D:\data.sql'); Memo1.Text := dbdata; …
0
votes
2 answers

Socket Closed Exception?

I am working on app, i want to make a TCP listener. I searched many sites for help. I am getting an error of exception. Called Socket Closed Exception. MY Code and Log Cat is given Below. public class ListenerService extends Service { //Socket…
Nadeem Yousaf
  • 563
  • 10
  • 31
0
votes
2 answers

Internal Implementation of ServerSocket.accept() method?

Everyone is aware of socket programming in java. we write a code as below: ServerSocket serverSocket = new ServerSocket(1234); Socket server = serverSocket.accept(); We know that we create object of serverSocket and next we write…
Vishvesh Phadnis
  • 2,448
  • 5
  • 19
  • 35
0
votes
2 answers

Server socket on Windows Phone 8 and 8.1

I need to port an application to the Windows Phone platform. Is it possible to create server sockets on Windows Phone 8 and 8.1? All I've found is related with client side, like creating connections to remote machines. I can't find nothing the other…
Arun
  • 2,247
  • 3
  • 28
  • 51
0
votes
1 answer

Java. Is it always send with buffer size?

When using Java sockets, is msg always send with buffer size lenght? (When i send only 300bytes, is it anyway send in package with for example 1024 bytes size?) And what size buffer is the best option? What is a diffrence betweend 512 bytes, and 8k…
ziomagic
  • 93
  • 1
  • 9
0
votes
0 answers

android server client chat using socket

I'm creating a android server client chat app using socket programming. Till now in my app the client messages will only display in the server. messages from server is not displaying. i'm attaching the java code only because i think from that u will…
user3493407
  • 37
  • 1
  • 8