Questions tagged as 'socket'

1
answer

TCP / IP client freezes when sending data to Server

It is an "echo" server where I want that when two clients connect, they send a String to the server, the latter answers and the client prints the read. The fact is that one of them is left unanswered, I use Threads on the server for each clie...
asked by 01.06.2016 / 11:27
2
answers

Perform HTTP Requests over USB and Sockets

I am working on a development which consists of being able to make HTTP requests using the usb cable and the pc as an intermediary, I followed this page which helped me but I'm having a little problem which I can not fix, here's my code:...
asked by 02.06.2016 / 17:50
0
answers

because some commands do not show the output?

I'm making a server and client. Everything is fine, but in the shell when I have the client.py running and when I insert some commands like rm -r , shred -u ... it executes correctly in the shell of the other computer, but in my cli...
asked by 02.01.2019 / 20:09
1
answer

ServerSocket and Socket java

class ClienteFecha { public static void main( String[] args ) { String servidor = "localhost"; int puerto = 13; // puerto de daytime try { // Se abre un socket conectado al servidor y al...
asked by 18.04.2016 / 19:04
0
answers

Problem creating a chat server in python

I have a problem with a chat that I am creating, when 2 clients connect to the server, the first one that is connected is printed many line breaks and when a message is sent it is not printed on the other side, here I leave it the code: clien...
asked by 02.12.2018 / 00:43
0
answers

How to make the file finish receiving? Python Sockets

Good morning everyone, I am new to the world of Python ; I am developing an application with Sockets . It turns out that the code is developed for the version of Python 3 ; On the server side I have the problem that when I star...
asked by 12.11.2018 / 19:30
0
answers

How to send an object to a namespace (a graphic interface type class) and set the object to be used by C ++ button actions

I am working on a project that has two administrators connected to a server through sockets and threads. Includes graphic interface. The problem arises when I want to send objects of type socketC to the interface so that each inter...
asked by 13.11.2018 / 09:30
1
answer

websocket Error during WebSocket handshake: net :: ERR_INVALID_HTTP_RESPONSE

I'm having problems implementing websocket with php socket, I'm testing my machine but I can not find the problem and I'm already circling around. server      set_time_limit(0); $socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP); if (soc...
asked by 02.11.2018 / 18:51
0
answers

JAVA socket closes before sending an ACK

   My code to understand this is a server socket receives a message of "n" lines with hexadecimal characters at the beginning and end (MLLP protocol), but when this buffer is analyzed to pass to string and then pass it to my procedure, it causes...
asked by 31.10.2018 / 16:43
0
answers

I want to be able to save files on a server made in c

The truth is that I have just started with the issue of socket in cy and I already programmed the client and the server with the tcp protocol, but I wanted to be able to save files in the server in order to download it from the client in another...
asked by 20.10.2018 / 18:56