Questions tagged as 'socket'

1
answer

Object instantiation failed: only the first one is created

I have a class in JAVA that is a Server. I put in this class server the port argument, for example. If I am calling this class I would do this: new Servidor(5000); . 5000 is the argument of this server class, so I created a new cla...
asked by 09.06.2014 / 01:08
1
answer

How can I tell if a socket is "listening" to the server side?

When I use the isConnected() function of java.net.Socket ", on the client side, and it returns me true I can be sure that the server Are you listening? Otherwise how can I know? Just with a wait time between establishing a c...
asked by 25.05.2017 / 16:22
2
answers

How to receive messages from a GPS that uses GPRS via PHP?

I have a Gosafe G91i device, a GPS device that sends its location from time to time to an IP and a port that I can configure. At the moment, IP and port of an online server (Orange gps-trace) are set and I would like to set it to a server of min...
asked by 18.03.2014 / 13:19
1
answer

Socket Javascript does not connect (Stomp + RabbitMQ)

I'm trying to establish a communication between RabbitMQ and Javascript, to retrieve the log information that is sent to a RabbitMQ topic, but to no avail. In the console the following information is displayed: Opening Web Socket... WebSocket...
asked by 04.10.2017 / 13:16
1
answer

What do files with sock extension serve?

Some applications, such as PHP-FPM and MYSQL, usually use a file with the .sock extension. I always see this on Linux operating systems. Example: /var/run/mysql/mysql.sock As far as I understand it is related to socket connect...
asked by 05.06.2017 / 14:25
1
answer

Sockets java - Beginner

I'm starting in java and I have a problem with sockets, I wanted my server to receive a value and then I wanted to turn it into a String so I could include it in if conditions. However, despite the server receiving the text without...
asked by 18.02.2015 / 23:09
1
answer

Socket with Timertask

I want to ask for serverSocket a response (some information) every 5 seconds. I set up my socket and I'm using a TimerTask to execute a method every 5 seconds, but only the first execution is successful. Attempt one...
asked by 10.04.2014 / 22:43
0
answers

Application in C Client-server for file transfer with TCP socket and thread [closed]

I would like to ask the forum help to make safe (encrypt) the transfer of a file between two computers. Below is the C source code of a client-server application for file transfer using TCP socket but without encryption of the transferred data....
asked by 25.11.2015 / 20:14
1
answer

ERROR: "Usually only one use of each socket address is allowed"

Before they say that "the port is already being used, try another one", I have received this response several times, and changing the port simply does not work. Well, I'm developing a game that uses Socket via UDP to transmit data over the ne...
asked by 18.02.2016 / 13:41
3
answers

How to get the buffer from the socket?

I am receiving a quantity of data coming from a server, the client (the code below), after sending a message, it receives another one, but would like to know the size of the message that is coming from the server to allocate the variable before...
asked by 23.03.2017 / 01:56