Questions tagged as 'socket'

0
answers

Received fatal alert: handshake_failure when the class is executed by Schedule - JDK7

I have a class that does integration with WooCommerce, when I run the class when I upload the project not to httpClient error (4.5.3) I get the HttpResponse 200 ok, I have two api registered, 1 ° link e  2 ° link Both have the same TLS...
asked by 11.06.2018 / 19:29
0
answers

Send unspecified amount of JSON strings via socket

I have a cliente/servidor application where the client makes a request to the server and it asks a banco de dados and then returns that data to the client in JSON format, as I do not know how many records I have in my I thou...
asked by 02.10.2017 / 14:35
0
answers

Screen updates only once when using multiple socket connections

I'm creating an android application in which I exchange data with a java socket server on the pc. And in the same application I will open some threads that run servers for a direct connection to the android, receiving intermittent data. The p...
asked by 03.10.2017 / 02:35
1
answer

Socket PHP lives falling [closed]

I wentogle and found ways to work with the socket. Then I started the service in my VPS. At first it was working ok. However, now, from moment to moment, the Socket drops, causing me to need to access ssh at any time to restart it. Would you...
asked by 10.07.2017 / 16:28
0
answers

Is it possible to use Websocket connections in Apache?

With the advent of Websockets in browsers, I was also interested in doing some implementations in some applications. Of course with the idea comes the initial doubts. One of the doubts that have arisen for me is about Apache. Traditionally...
asked by 29.06.2017 / 14:37
1
answer

Auto reconnect reusing an async socket connection

How do I have my socket reconnect by itself when the connection is lost? Preferably reusing the same connection.     
asked by 14.12.2015 / 01:59
0
answers

Socket in Java is not printing what it should

Server: BufferedReader inFromClient = new BufferedReader(new InputStreamReader(connectionSocket.getInputStream())); String s = inFromClient.readLine(); System.out.println("> "+s); This simple code is returning the...
asked by 13.05.2015 / 03:18
1
answer

How to close a ServerSocketChannel?

I have the following code: Selector socketSelector = SelectorProvider.provider().openSelector(); ServerSocketChannel serverChannel = ServerSocketChannel.open(); serverChannel.configureBlocking(false); serverChannel.register(socketSelector, Sel...
asked by 22.09.2015 / 22:24
1
answer

Best way to communicate the Application with the Server [duplicate]

I'm developing an application that needs to communicate with the server (send and receive data). What would be the best way to do this data exchange with security and performance? Through REST / WEB SERVICE, Sockets, HTTP request or some more...
asked by 11.03.2015 / 18:30
1
answer

Doubt how to mount socket in old game in Python [closed]

I have a job in the network programming course and were asked to use a game code and make a client and server using sockets , but my teacher's explanation was very vague and he does not support students at all. I've already put everythi...
asked by 28.06.2017 / 15:35