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).

64,880 questions
0votes
0answers
9views

Socket_io_client chat count issue in flutter

In flutter how can get number of unread message count in Socket_io_client package ?
0votes
0answers
12views

Python Sockets Left in UNCONN State

I am facing an issue where my sockets in ubuntu are left in UNCONN State: ss -s And below are the state for better visibility ss -au I am using a python code that is trying to use sockets to receive ...
0votes
1answer
25views

C++ winsock problem reconnecting socket after it has been closed

I am building an application that uses Windows sockets for communication. The Client class handles the connection and spawns a thread that should periodically check if the connection is alive and if ...
-1votes
0answers
36views

low speed of UDP sockets (c++ winsock)

What I'm trying to achieve I'm trying to make socket app where server would take screenshot and send it then client would recive it and display. How it should work In order to do so I use UDP sockets (...
0votes
0answers
7views

TypeError: callback is not a function Socket IO Room Redis Adapter

39m07/23/2022, 11:16:20 AM [38;5;3m[WsExceptionsHandler] [39m [31mcallback is not a function [39m [38;5;3m +1ms [39m 2022-07-23T11:16:20.971963639Z TypeError: callback is not a function 2022-07-...
0votes
0answers
12views

Communicating through public IP address vs STUN? [duplicate]

My understanding is that the STUN server aids in establishing a communication channel between different devices by obtaining their public IP address. But how does obtaining the public IP address help ...
0votes
1answer
19views

Multicast listing between two computer is NOT working

I am trying to write a listener , which will listen to multicast data from different systems. As per my understanding, any system which is present in the same subnet will be able to get any data that ...
0votes
0answers
25views

How to correctly describe a C++ class in Cython?

I want to use TcpStream's class(written in C++) in Python via Cython wrapper(I also need it for other purposes). But I got a problem - the desired class is split into several files: Stream.cpp and ...
-1votes
0answers
22views

Call of select returning timeout randomly while reading the data [closed]

I am establishing the connection multiple times and calling Tcp_read for each connection then close the connection .But for few run select is throwing timeout exception even i am getting message from ...
0votes
0answers
55views

TCP/.NET: Reading length prefixed buffer or fixed buffer size

I'm currently in the progress of writing my own TCP network library in C# and I want to make sure I'm doing things right. Currently, I have every packet that gets sent through a socket prefixed with ...
0votes
1answer
39views

providing int32_t to inet_ntoa causes segFault. why is that

I am trying to convert ip values as hex contained in uint32_t data type. So I dont think this is any wrong since inet_ntoa gets iphdr->saddr and iphdr->daddr but I get segFault at inet_ntoa ...
  • 3,512
1vote
0answers
11views

Socket.io based server is inaccessalbe to socket connections, but the troubleshooting link works

Pretty much, my socket.io server lets me access <the server URL>/socket.io/?EIO=4&transport=polling (which is the troubleshooting step in the docs), but it doesn't let me connect to the ...
-1votes
1answer
49views

Python client socket can't receive data from a successful response

Socket can't receive any data from the server, when there is a successful response, but with bad requests it can. Also server responds, just the socket can't receive data (checked in WireShark) import ...
0votes
1answer
20views

Flask gRPC betterproto socket.gaierror: [Errno 8] nodename nor servname provided, or not known

I'm creating microservices using gRPC. For generating code from .proto file I'm using betterproto instead of grpcio-tools. When I use Flask as a client app to call functions of server it's giving ...
-2votes
0answers
18views

getting the hosts from the responses in socket python

While experimenting with the Python socket library, I wanted to make a server that can take 2 clients only for communication, like WhatsApp. I was thinking that with 2 clients and the server, one ...

153050per page