Questions tagged as 'socket'

1
answer

Notifications with Spring

How to implement a system of notifications that receive a real-time counter of notifications example: My question is that when you insert another bank in the bank and pass from 4 to 5 if you update in the same session as fast as possibl...
asked by 14.03.2016 / 15:09
1
answer

Clients do not communicate in the same multiplayer game in Java

I'm trying to make a simple multiplayer tank game by implementing chat. The game and the chat are all ok! However, I can not get 2 clients to see the same object Arena . In this case, each customer joining creates a tank in the arena. H...
asked by 13.11.2017 / 06:23
1
answer

Choose encryption in SSL

How can I define exactly which encryption I will use in the routine below? I want to define for example that the encryption to be used is AES, or DES, or 3DES ... // Setup truststore KeyStore trustStore = null; trustStore = KeyStore.getInstanc...
asked by 13.10.2014 / 04:46
2
answers

How to block a site with Delphi, vbs or msdos?

I have a system for monitoring and monitoring users and would like to block a site using Delphi or even MSDOS or VBS commands, or even using Sockets (I do not know if it's possible)? What I have for now is this: Delphi var dd: TextFile...
asked by 28.12.2015 / 18:46
2
answers

What is the difference between socket and port?

Developing a service-oriented app , I came across the following question: What is the difference between port and socket within the computational structure?     
asked by 21.02.2018 / 03:59
1
answer

C socket for Linux (how to pass a struct?)

I have a client / server application and I need to transfer a struct to the server, but this is not working: typedef struct{ int pontos; int vidas; int flagReiniciar; int flagAcabar; int matriz[21][19]; } dados; send(sockfd,&...
asked by 14.09.2015 / 07:04
2
answers

java server disconnects idle users after 5 minutes

I am using this Java methodology for connecting between client and server, I copied it from the internet, and it helped me a lot, but the server allows the user to stay connected while he is sending messages, but if the user stays an average tim...
asked by 19.05.2014 / 14:26
1
answer

Problems with Chat Sockets with NO-IP Host

Well, first of all, I looked at several sites, including here, how to do this. I tested codes and modified them but still, I kept getting errors. The problem is the sockets to make the connection. I have no idea how to use them, and I need to...
asked by 25.02.2015 / 18:17
1
answer

NodeJS socket client - callback for each request

I have the following code var net = require('net'); var client = new net.Socket(); client.connect(1337, '127.0.0.1', function() { console.log('Connected'); client.write('Hello, server! Love, Client.'); }); client.on('data', function(...
asked by 11.07.2015 / 05:29
1
answer

How to find out if TCP Listener is listening?

Library that I use: link Follow the code below: await client.ConnectAsync(address, port); The above code is the client and works normal. Let's say the server is off, when I run the above code, it takes little time and I get error:  ...
asked by 20.03.2018 / 21:07