Questions tagged as 'socket'

0
answers

Leave socket listening for connections in PHP

   How to create a socket and leave it in listening mode to receive a connection on an X port of any network IP, either external or internal? I want to create a script that waits for connections on a given port, and that comes from any netca...
asked by 31.10.2018 / 19:36
0
answers

socket_connect () - Error 113 - PHP

I'm trying to make an Arduino receive data in a PHP structure. Quickly explaining, when the user changes the status, between 0 and 1, it would send a signal to the Arduino according to what was chosen and the Arduino receiving this data,...
asked by 11.11.2018 / 14:54
0
answers

java.lang.RuntimeException: Unable to start activity ComponentInfo {}: java.lang.NullPointerException marking my input

I'm new to android development and I'm passing a swing chat to android. The idea is to use a socket server that makes the connection. This is the third attempt to make it work ... I received the following errors: E/AndroidRuntime: FATAL EXCEPT...
asked by 28.10.2018 / 16:22
0
answers

socket in c errors of sending numbers of client pro server tcp

My first time here, I need a light, I have a server written in c that is a calculator and it is in a machine, the client that runs on another machine takes the two numbers and the operator that the user types and sends to the server calculate in...
asked by 22.10.2018 / 23:25
0
answers

How to use the ntohs function correctly?

Hello, I'm having trouble converting network byte order to host byte order with ntohs() ". I do not understand why the conversion is giving problems, because the function I am using to convert host byte order to network byte order...
asked by 04.10.2018 / 00:59
1
answer

How to make more than one type of request to the Python server?

I've separated using a function, but the code does not get the 'date'. COMPLETE SERVER CODE: import socket import json import sys dicty = { 'the': 'o, a, os, as', 'hello': 'ola', 'hi': 'oi', 'good': 'bom', 'ugly': 'feio...
asked by 05.10.2018 / 13:18
0
answers

Error in socket module in Python

I'm trying to make a code that creates a TCP client: import socket target_host = 'www.google.com' target_port = 80 client = socket.socket(socket.AF_INET, socket.SOCK_STREAM) client.connect((target_host, target_port)) client.send('GET / HTTP...
asked by 21.10.2018 / 04:37
1
answer

Problems Communication Socket Server Delphi Client CSharp

I have a need to implement socket-to-server communication in
asked by 04.09.2018 / 16:13
0
answers

Errors using Vert.X

C:\Unky\Web\BloodStrikeServer-master>java -cp classpath/commons.jar;classpath/fl ex-com.jar;classpath/flex-cor.jar;classpath/junit.jar;classpath/link.jar;classpa th/maven-com.jar;classpath/maven-sha.jar;classpath/mysql-con.jar;classpath/vertx...
asked by 07.09.2018 / 23:02
0
answers

Angular SocketIo - Does not give error, but does not work

Good night, I'm trying to get the data in realtime with socketIO, but it does not work. Via console is sending and sending from the backend, but I can not show in the frontend nor does it show any information receiving data. tickets:any[]...
asked by 11.09.2018 / 04:14