Questions tagged as 'socket'

1
answer

Error connecting socket Andorid java application (Client) with socket application java PC (Server)

Communication between the socket of my java application andorid (client) and my java pc (server) application does not work. I have 2 java applications, one for mobile and another for computer. It is assumed that the andorid application (clien...
asked by 02.11.2018 / 00:36
1
answer

What differences do the sendall & send functions have in python?

In Python, in the module socket there are two functions: send() and sendall() , both have the same parameters and the documentation of both is quite similar that I do not fully understand what differences there are between on...
asked by 25.07.2018 / 22:50
1
answer

Doubt about INADDR_ANY

I am working on a project in which I want to communicate a computer with a Raspberry Pi using the UDP communication protocol. My doubt comes at the time of declaring the IP address. I have read on some pages that this applies to all local interf...
asked by 27.05.2018 / 02:59
1
answer

Socket JAVA not local

I have an application where I open a socket; server = new ServerSocket(25000, 1, InetAddress.getByName("localhost")); And a client that connects to him; private Socket socket; this.socket = new Socket("localhost", 25000); The program w...
asked by 22.02.2018 / 12:39
1
answer

break does not break the client listening cycle on server when receiving keyword

I have two codes: one the server and the other the client: The server: import socket s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.bind(("127.0.0.1", 9999)) s.listen(5) print ("Servidor de Chat\n") while True: pri...
asked by 16.12.2017 / 20:23
1
answer

Sockets with Java (server) and Python (client) without flush in python

Hi, I have a socket project (practice for now) and the problem is that on the client side (in python) I do not know how to clean or simulate the output buffer of the socket. The first message is sent "correctly", since it is the first and there...
asked by 07.07.2017 / 23:20
1
answer

Problem receiving a socket on android

I have a Raspberry sending some data to my Android APP and the only way it works for me is the following APP: public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) {...
asked by 12.06.2017 / 18:16
2
answers

Arrangement control in Jade template

I'm doing an application where I read a database in MySQL (MariaDB) and the result (an array) I render it to a template in jade. I try to create a slider for 8 images in 4 columns Bootstrap and 2 images with descriptive information in...
asked by 28.04.2017 / 17:22
1
answer

Problems with ssl in nodejs

Hi, I'm new to nodejs, I'm doing a project with socket.io and I need to connect securely with https, but I can not make the SSL certificate work. this is what I have: var fs = require('fs'); var socket = require('socket.io' );//form...
asked by 04.03.2017 / 01:22
2
answers

Serialization and sending of objects through Socket JAVA

Greetings I am doing a project in which I have a ServerSocket where I try to send a serialized object to a Socket with random numbers and the date in which they were generated for the client to operate with them. I have a main (), a ServerHilo (...
asked by 26.02.2017 / 13:22