Skip to main content

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

sockets
0 votes
1 answer
25 views

ESP8266 is stuck in an infinite socket.accept() loop, i guess?

Ive been working with my ESP8266 and have encountered an issue that seems to be coming from nowhere and being unsolvanle. At least - to me. Basically I went on with this tutorial on building a simple ...
Alex Kolbeck's user avatar
0 votes
0 answers
22 views

the problem of connecting to a Python socket

I'm trying to make my telegram bot turn off the computer when I wrote 'off' to it. I don't want to connect the bot to the hosting on the site. I chose my phone (Android Redmi Note 10) for hosting. I ...
Да не знаю я's user avatar
0 votes
1 answer
13 views

Why does `ssl.SSLContext.wrap_socket` cause socket to close?

I found some "strange" phenomena when using Python for network programming. After constructing the SSL context and obtaining the SSL socket, the original socket will be automatically closed. ...
S-N's user avatar
  • 350
-2 votes
0 answers
14 views

Is there any limitations on Socket running for each service account on Windows system? [closed]

Do you know any limitations on Socket running on Windows service account? I’m trying to understand how many sockets we can run using same service account on Windows later version. Any limitations on ...
user26438589's user avatar
0 votes
0 answers
31 views

Use C socketpair [closed]

I try to write test for a function which reads from socket, preferably using one process. To simulate a sender, I plan to use socketpair, but the following code does not work. #include <stdio.h> ...
user180574's user avatar
  • 5,972
0 votes
0 answers
26 views

Why is my socket losing its type when passed into a function? [duplicate]

I receive the error: [WinError 10038] An operation was attempted on something that is not a socket def main(): test_sock = connToDevice("TEST") resetRobot(test_sock) def ...
Sam S's user avatar
  • 1
-3 votes
0 answers
43 views

How to break from the Loop while listening from the Socket TCP connection in C++ QT form the different main thread [closed]

I have a main thread which starts the worker thread. This worker thread has a while(true) loop with a break statement and condition inside the loop. This worker thread listens to the Socket connection ...
TheUser's user avatar
2 votes
1 answer
32 views

Can Client use the same Socket object to reconnect to remote after disconnect

Maybe the simple answer is no, a new socket object must be created each time... but my situation is. Client creates socket and uses ConnectAsync to connect to remote server ConnectAsync Completed ...
Ranald Fong's user avatar
1 vote
1 answer
31 views

how to decide if SocketTimeoutException means there is no connection

we have a retrofit java client to a server running in gui app, we want to notify the user if there is no connection to the server, there are some exceptions that are obvious like ConnectException or ...
Shin938's user avatar
  • 949
0 votes
1 answer
22 views

Socket io (Error: server error) while in production - Using ECS Fargate with Elasticache Redis

I have been working on a chat application and everything seems to work in localhost but when I am in production I am having difficulty connecting my socket io client with my socket server. This is the ...
brohxa's user avatar
  • 117
-2 votes
0 answers
25 views

Socket is null. Please check if the challenge has been accepted correctly [closed]

why does this show 'Socket is null. Please check if the challenge has been accepted correctly.' after clicking the tic tac toe buttons even though the player accepted the challenge? my project is ...
Mr. Newbie's user avatar
0 votes
0 answers
53 views

Is there a better way of listening socket in infinite loop in PHP?

I have the following code for listening socket for client connections <?php $socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP); $port = "1234"; socket_bind($socket, '192.168.1.1', $...
Sim's user avatar
  • 19
-3 votes
0 answers
55 views

.NET6.0 How to reach 10 gigabits per second with TCP sockets?

Is it realistic in C# Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); to get a data transfer rate of 10 gigabits per second on 10 thousand connections on Ryzen 7 5800 with SSD ...
Ivan Kotov's user avatar
-1 votes
0 answers
32 views

Does a socket instantiated in a parent class belong to its child class?

I'm making a messaging service in java where I'm using sockets and object input/output streams. I wanted to make this as object oriented as I can (to learn OOP) so for the client side I'm making an ...
Cyberdrum's user avatar
-1 votes
0 answers
23 views

Why does connecting to a socket stop my main program from running? [duplicate]

Basically what the question says. I have a program that utilized a GUI to do various tasks. One of those tasks is to open and listen to a socket, which is created and called in a separate class. ...
Blake's user avatar
  • 15

15 30 50 per page
1
2 3 4 5
4441