Questions tagged as 'socket'

0
answers

Multiple client chat using Threads and Sockets

The code posted here represents a small chat between client and server. Like I said, I'm not familiar with threads. The teacher told us from this code to create a multi-client chat, where clients send and receive messages and the only functio...
asked by 24.08.2018 / 14:02
2
answers

Socket between 2 devices

I would like to send data between different machines, between 2 computers, between a computer and an Android . I made the example internally, on the same computer, but when I disconnect (the server stays on one computer and the client goes t...
asked by 26.08.2018 / 21:18
0
answers

soket.io - doubt

I'm new to using soket.io and I'm learning how to create a server, but I'm not able to print the message, can someone help me? server.js var fs = require('fs') var http = require('http').createServer(handler) var io = require('socket.io')(h...
asked by 23.07.2018 / 22:33
1
answer

C socket problems

I have 3 functions responsible for creating a socket, sending data and receiving data. The function sock_create creates a new socket returning an int from this socket, the function sock_send sends a header to the sockfd (server), and finally the...
asked by 14.07.2018 / 16:45
0
answers

Bluetooth Windows Socket - Can not connect to device: (10049)

I am having socket error problems with code 10049 when I try to connect a bluetooth SSP device, serial port service, in Delphi Tokyo 10.2 in the Windows environment using a TBluetoothSocket class. The error occurs at connection time (TBluetoothS...
asked by 17.07.2018 / 19:09
1
answer

Connection overriding when running php socket script

I'm building a socket server in php, a simple chat. When I send a message or close a page, the following error appears: " Warning: socket_recv () Unable to read from socket [10053]: An established connection has been aborted by the software on t...
asked by 12.07.2018 / 21:26
0
answers

Is the SSL Direct Request Text CONNECT or GET? (Python + Socket + SSL)

# -*- coding: utf-8 -*- import socket, ssl, threading, select def conecta(c, a): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect(('123.456.789.123', 444)) s = ssl.wrap_socket(s, ssl.PROTOCOL_SSLv23) c.recv(8192)...
asked by 05.07.2018 / 05:47
0
answers

How does socket_select really work?

Hello, I took some time to study sockets in php. I already use the ratchet at one time but I was interested in using the sockets without a library, just to get more knowledge, but with that came a doubt that I can not solve it, I've researched e...
asked by 08.07.2018 / 01:44
0
answers

How to Add SNI (server_hostname) Using sockets and ssl Modules in Python?

How to Add SNI (server_hostname) Using Sockets and ssl Modules in Python? import socket, threading, select, ssl def conecta(c, a): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect(('123.456.789.123', 444)) connec...
asked by 30.06.2018 / 20:14
1
answer

Sending Java Socket message

Hello, I'm trying to make a server socket, but I'm not able to communicate between servers. But the strangest is the following check out the print below Butwhatishappeninginsteadthemessagecomesoutinjustonesentenceis"flooding" the console...
asked by 24.06.2018 / 20:01