Questions tagged as 'socket'

1
answer

Process only one message at a time in Active MQ

I have a Java process that uses ActimeMQ, the queued messages are processed by Java and sent to a socket. The problem is that activeMQ processes several messages asynchronously at the same time, and sends them to the socket, causing the message...
asked by 13.12.2017 / 17:07
1
answer

Create a Socket server in C # and connect with Javascript

It turns out that I need to make a server to communicate clients with each other but in C #. This is the code using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System....
asked by 03.12.2017 / 17:43
1
answer

cpp SOCK_RAW continues to receive the same message ad infinitum

I create a socket of the form: fd = socket(AF_INET, SOCK_RAW, IPPROTO_UDP); then proceed: bind(fd, (struct sockaddr*)&saddr, sizeof(struct sockaddr_in)) where saddr supports INADDR_ANY and is from the AF_INET family The problem...
asked by 05.12.2017 / 14:30
1
answer

Cycle problems while java

I need your help. Something strange happens in this part of the code. abc = is a created object that handles the graphical interface and the tcp connection. up there all right the abc object creates the graphical interface and manages the tcp co...
asked by 27.01.2018 / 17:07
0
answers

How to pass the connection from one socket to another JFrame?

I am creating a client / server application, I start my first connection to the server from a jFrame (LogIn), now I want that same connection to pass to another JFrame (MainPage) so that I do not have to close the connection and then have to ope...
asked by 27.10.2017 / 18:47
0
answers

Problem with port node.js and CentOS 6

Friends I have days searching and I still can not find anything, I have my node.js application running on a CentOS 6 server. I'm using the socket.io and express libraries ... From the console I can see that the node server opening the port of li...
asked by 07.05.2017 / 16:42
0
answers

Read bytes from a socket in java

I'm trying to make a java server that reads bytes from the socket. The problem I have here is that the function read() returns me -1 and this can be due to the fact that the connection is closed. I do not know which is the problem...
asked by 06.04.2017 / 09:53
1
answer

Sockets Xamarin Android

I wanted to ask you, yes Does Xamarin Android support System.Net.Sockets'? I have tried it in the following way (this is a part of the code) IPAddress ipAd = IPAddress.Parse("192.168.1.4"); // use local m/c IP address, and // use...
asked by 27.03.2017 / 04:38
1
answer

Receive response to UDP messages in PHP

Good morning! I have the following PHP code to send commands via UDP: function sendPacket($packet, $ip, $port){ $socket = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP); socket_set_option($socket, SOL_SOCKET, SO_BROADCAST, 1); $message =...
asked by 01.03.2017 / 18:09
0
answers

Problems with tkinter and sockets in python

I come for your help. I happen to be doing a game in python a "Battleship". Create the interface with tkinter and to make it online I started using sockets. The problem is that when I want to perform an "attack", everything is pasted. The connec...
asked by 26.11.2016 / 19:18