Questions tagged [sockets]

An endpoint of a bi-directional inter-process communication flow. This often refers to a process flow over a network connection, but by no means is limited to such. Not to be confused with WebSocket (a protocol) or other abstractions (e.g. socket.io).

Filter by
Sorted by
Tagged with
-1 votes
0 answers
42 views

Receive duplicated characters when use recv() for multiple times in one socket connection

I want to receive data points from an oscilloscope by SCPI commands through TCP/IP socket connection, but when I try to write a loop to receive multiple channel's data points it seems always send me ...
Crisps's user avatar
  • 9
0 votes
0 answers
6 views

using socket to create a server and then using urllib to get the data, getting an error "No connection could be made because the target machine"

I used this code to create the server import socket HOST = "10.34.9.130" # Standard loopback interface address (localhost) PORT = 8080 # Port to listen on (non-privileged ports are > ...
Mayank Kumar Gupta's user avatar
0 votes
1 answer
35 views

How to increase the speed of Socket TCP communication in C# with an external client on the same PC (host)

I have a SoftPLC that connects to C# via Client TCP and sends a 250 bytes packet every 100ms. The program I created in C# is working and receives these bytes, but it can only read at a rate of about ...
Leandro Teixeira's user avatar
0 votes
0 answers
32 views

python socket recv() not receiving all data despite using loop

My goal is to get the index page of google.com and I'm not sure why I'm still not getting the full response despite using a while loop. import socket client = socket.socket(socket.AF_INET, socket....
kriloots's user avatar
0 votes
0 answers
17 views

A lots of ACK packet send by server

I use the opentelemetry-collector as a agent co-located with my Swoole(php) application. AFAIK, tcp connections do not ACK each other , I don't understand how this process happens, please help me . 10:...
CHIIIINA's user avatar
0 votes
0 answers
30 views

Detect if connection is HTTP or HTTPS and handle it in python

I have a socket listening on a port and I don't know what kind of connections I'm getting on it. It can be HTTP, HTTPS or something different. I would like that my server will handle at least HTTP and ...
user1618465's user avatar
  • 1,831
-1 votes
0 answers
24 views

windows socket communication time influence by Sleep

I'm testing the rating of windows socket communication, server receives message and return, client send message and get server's response. If client send and receive continuously, the time about ...
钱云帆's user avatar
0 votes
0 answers
30 views

Can't connect to a python socket

I am trying to send a string from STM32H750B-DK with TCP and receive and print it in python. Here is C code for TCP server: /* * tcpserver.c * * Created on: Apr 20, 2022 * Author: ...
AK16's user avatar
  • 1
0 votes
1 answer
35 views

When will boost.asio actually start the transmission and send the data?

boost::asio::ip::tcp::socket uses buffers. I know that when write or async_write is called, the data is just written into the buffers. My question is when will them be actually sent? Or, to be more ...
yhgu2000's user avatar
  • 307
-1 votes
1 answer
29 views

why is Cin.getline(); ending my connection to my socket? (networking) (socket programming)

Before I start I want to clarify that I'm using the socket code from microsoft as a template. https://learn.microsoft.com/en-us/windows/win32/winsock/complete-client-code I want to talk to a server to ...
Fardin Mahid's user avatar
1 vote
0 answers
30 views

Inexplicable delay in receiving data via Unix socket using Python code [closed]

I have the following setup: a few dozen Python modules running which collect data, they send these data to an aggregator which is a Golang module, using a Unix socket connection (one file for ...
BenVida's user avatar
  • 1,871
-2 votes
0 answers
16 views

How to transfer data between client and server without using a socket? [closed]

Suppose I'm running a server and a client on my machine. How do I transfer data from the client to the server and vice versa not via socket? I'm not very good at networking, so I don't fully ...
Minas's user avatar
  • 7
0 votes
0 answers
20 views

Sockets, Cors Hostinger - Angular and PHP [closed]

I am making a system with PHP and Angular but when I upload it I get this error: Access to XMLHttpRequest at 'https://"rutahosting"/socket.io/?EIO=4&transport=polling&t=OhIDRRm' from ...
0 votes
0 answers
17 views

Why WebSocket connection with a server disconnects immediately after connection, how to ensure it keeps open?

I am developing a web socket connection from my front end to the server and the connection for some reason closes immediately after opening the connection. I am able to see that the same info works ...
BATMAN_2008's user avatar
  • 2,767
0 votes
0 answers
46 views

How to remove Java Socket speed limit when sending files in chunks byte[]

I have a socket that can transfer files in byte[] chunks, but no matter what size I set to buffer, or how many clients connect to the server, the transfer speed is limited to 3 MB/s (on 1 Gbps ~125 MB/...
John's user avatar
  • 11
1 vote
2 answers
33 views

Why don't I have to expose port of tcp client in docker container?

I have a containerized application that needs to connect to a remote tcp server as a tcp client. When the app starts, it goes and grabs a random port to use for the connection. I would expect I need ...
TenderShortGoldenRetriever's user avatar
0 votes
1 answer
32 views

how do i add a label to tkinter through after the mainloop()?

I need to create a client-server registry system. The client is supposed to enter their username and password, and the server should confirm it. The GUI should be made in Tkinter. The problem is, that ...
oz hagevermeleh's user avatar
0 votes
0 answers
25 views

Unity multiplayer game with socket is working for mobile devices?

I am developing a Multiplayer game with the help of Unity and Socket. But somehow my project running well and connecting to the server but when I make an Android build it's not connecting to the ...
Deval Mistry's user avatar
-2 votes
0 answers
17 views

How to write a program in python,given a vector of queues with unique ID, client send request (id,str) meaning to push string str in queue of ID 'id'? [closed]

I need a method in socket programming to be able to send input of vector of queue taken from client and sends to server which add a string to queue id based on client's request. I am confused as how ...
Arsh's user avatar
  • 1
-1 votes
0 answers
16 views

System Design Chat Application [closed]

I am new to system Design. Please help me in understand below two questions.Lets say there are two servers a and b behind load balancer. User A is connected to server a and User B is connected to ...
user10891599's user avatar
-1 votes
1 answer
42 views

Server socket accepting connection only once

I am learning to work with C sockets, and have created very basic client and server programs for the same Client Program #include <stdio.h> #include <stdlib.h> #include <sys/types.h>...
Shreyash Singh's user avatar
3 votes
0 answers
44 views

Trouble with usocket in Clozure CL

I can't get USOCKET to work under CCL, even though the very same code works on SBCL and CCL's built-in sockets work ok. This snippet works in SBCL: (let* ((sd (usocket:socket-connect "localhost&...
Oddi T's user avatar
  • 51
-1 votes
1 answer
29 views

Python socket/client image sharing [closed]

I'm trying get screenshots and send it to server socket but unfortunately couldn't do that I checked videos and asked to ai but couldn't get a working solution. I will only write here the neccesarry ...
Kafası Güzel Penguen's user avatar
0 votes
2 answers
20 views

socket chat application room issue

I am creating a chatapp with node.js express and react. The application working and sending message all users but when i try send message to specific room, it's not working. The backend io.on('...
Hamit's user avatar
  • 11
0 votes
0 answers
17 views

Problem with sending mulltiple messages from server to client usign Java Socket [duplicate]

I am trying to do simple banking application but i encountered problem, my server only sends 1 message instead of sending all of them. My App consists of 3 Files package com.kiszka.server; import ...
Hubert Kiszka's user avatar
-1 votes
0 answers
26 views

CAN: read and write on same socket simultaneously

I'm doing some test about CAN socket programming on single machine: I created a virtual CAN interface called vcan1 I binded vcan1 to socket1 and created 2 threads: write a message every 2 seconds to ...
Seraph's user avatar
  • 175
-3 votes
0 answers
43 views

Why does my python socket code only run for 1 loop?

I have this code in server.py: import socket import threading import time import json import yaml import logging # Constants SERVER_IP = '0.0.0.0' SERVER_PORT = 12345 ITEMS_YAML_FILE = 'items.yml' ...
Mrmii321's user avatar
1 vote
0 answers
25 views

NodeJS & socket.IO emit cutting event payload

Problem I'm using socket.io as part of a chatbot. It was working fine; however, I have recently started having an issue when emitting events. The payload seems to be getting cut off, resulting in the ...
Levi Putna's user avatar
  • 2,873
0 votes
0 answers
10 views

Sometimes socket communication is too slow in Dart

I'm making a socket module which connecting between flutter and android as localhost. The reason why i use socket is simple. "I have to communicate flutter and android(or ios) as synchronously&...
LevelRoot's user avatar
0 votes
0 answers
37 views

Set Timeout for Socket in Fortran and WS2_32

I have a client in Fortran (ifort) which connects to a sockets, sends some data and receives some data. Because sometimes the connected server could halt or terminate I don't want to wait indefinitely ...
why.n0t's user avatar
  • 432
1 vote
0 answers
11 views

Socket creating multiple connection on page refresh

I’m having issues with my web server when I host my socket based web app on the cloud. But it works perfectly in my local machine, The problem is that when I refresh my page It creates another ...
Eloho Kennedy's user avatar
-1 votes
0 answers
33 views

TCP connections stuck on SYN_SENT while stress-testing the code, is PostMessage failing?

Scenario. I'm working on a server-client apllication which uses the MFC Socket classes on both sides. The code and setup worked flawlessly until we've started stress tests on the server; server ...
PaperBirdMaster's user avatar
-1 votes
0 answers
53 views

Flush serial port from TCP port

I am making a PYTHON program that communicates using a TCP connection (socket) to a TCP - Serial converter (USR Serial Device Server RS232 to TCP/IP Ethernet Converter), to finally communicate with ...
Pol's user avatar
  • 9
-1 votes
0 answers
37 views

How do I stop my server main loop from running?

I'm making a simple server database for practice purposes, it is running on a while loop and any new connection create a separate thread. I want to shutdown the server whenever one of those threads ...
Jan Carlos's user avatar
0 votes
0 answers
22 views

Socket-io-client recieving repeated duplicate data on event

Why am i getting multiple data received from socket-io event ? This is client side (react) //intialized socket-io-client// socket.connect(); socket.on("recieve-message", (incomingMessage) =...
007's user avatar
  • 1
0 votes
0 answers
29 views

Understanding a custom extension of Socket class

In the codebase I'm working on, there's a class that extends the Java Socket class: import java.net.; import java.io.; public class iSock extends Socket { private boolean openFg = false; ...
pensee's user avatar
  • 403
0 votes
0 answers
11 views

Ubuntu: SImpleBLE fails after installing conda as Dbus cannot find its socket [closed]

I am using simpleble (which is just relevant for context) which underneath is based on dbus listener. Dbus socket exists at: /var/run/dbus/system_bus_socket. However after installing Conda dbus tries ...
W4ltz's user avatar
  • 11
1 vote
1 answer
25 views

Cannot receive UDP packets after using async_receive_from on Linux, but can work on Windows

I'm now writing a C++ program which uses UDP to send and receive message with a hardware device. That program works well on Windows but when I put the same code on Linux(Ubuntu 22.04 LTS), it works ...
Jiahao Zhu's user avatar
1 vote
0 answers
23 views

How to detect if connection to client is already made with sockets

I am trying to create M:N socket clients, e.g N clients and each is connected to every other node. Basicly i will run my app N times with different info about other sockets so it can connect to other ...
Johnyb's user avatar
  • 1,010
0 votes
0 answers
18 views

Should sendto block when eth linkndown? Vxworks 6.9

When disconnecting the eth cable while periodically calling sendto on a udp socket, caller task blocks. Once link is back up, it is released. If the link is already down before transmitting, sendto ...
user13516054's user avatar
0 votes
0 answers
21 views

How to Synchronize Audio with Video Frames [Python]

I want to stream video from URL to a server via socket, which then restreams it to all clients in the room. This code streams video frame by frame: async def stream_video(room, url): cap = cv2....
Ростислав's user avatar
0 votes
0 answers
17 views

Docker on Linux (Manjaro), after system update change location of socket from /var/run/docker.sock to /run/docker.soc - docker doesn't work [closed]

After I made regular update of system and apllication, docker (and docker-compose plugin) doesn't work: permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker....
petrstepanek99's user avatar
0 votes
0 answers
16 views

nominatim.socket not found for setting up nominatim daemon

I have in the beginning overlooked the Python frontend and when i want to set up the Nominatim service it doesnt find the socket of nominatim: Failed to start nominatim.service: Unit nominatim.socket ...
gothsome's user avatar
-1 votes
1 answer
37 views

What is the difference between `asyncio.open_connection` and `socket.socket.accept()` [closed]

I'm trying to connect a device ESP32C3 (implementing Espressif's SDK ESP-IDF). This device creates a WiFi hotspot and streams some data. I use Windows WiFi connection panel to connect the ESP32C3 ...
jpo38's user avatar
  • 20.9k
1 vote
1 answer
35 views

Boost.Asio UDP socket, An invalid argument was supplied error

I am trying to create a thread to listen for UDP responses in c++ using the Boost ASIO library, this is my definition for the receive thread in my class file: tello::tello(boost::asio::io_service& ...
Ethan James's user avatar
1 vote
1 answer
38 views

Does Zig's HTTP client allow you to get access to the file descriptor for the socket?

It's not clear if Zig exposes the filehandle descriptor for the socket in client.request.reader()? Does it? And if so how do you get access to it?
Evan Carroll's user avatar
  • 78.7k
0 votes
0 answers
48 views

Does BPF_PROG_TYPE_SOCKET_FILTER only work on incoming packets?

I have wrote a simple BPF_PROG_TYPE_SOCKET_FILTER used for tracing HTTP messages then I want to know where the socket filter play its function. After reading some blogs I knew the following kernel ...
strickland ye's user avatar
0 votes
1 answer
22 views

How to stop scheduleAtFixedRate after the condition fails

I have a problem - Statement: I will be sending data from the client to the server and the server would be responding back with some data to the client after it receives the message from the client. ...
wei jong's user avatar
0 votes
0 answers
13 views

socket.io import found in one file but not the other? Uncaught Reference Error

I am currently trying to set up socket.io to send data between different html files in my application that is running on nodejs. I have referenced the wrapper script using unpkg as the following: <...
Palucca's user avatar
  • 25
0 votes
0 answers
31 views

Socket recv vs readline performs very differently on Windows and Linux, why?

I have been looking at fixing an issue with some socket code. I'm receiving data from a server in the form of jsonlines (json objects separated by \r\n). The original code only checks if each .recv ...
Peter's user avatar
  • 181

1
2 3 4 5
1327