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

0 votes
0 answers
19 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
26 views

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

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
0 answers
30 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
30 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
18 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
23 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
50 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
31 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
0 votes
1 answer
34 views

Send data to all sockets at exact time [closed]

Say we have array or list of sockets named (A,B,C) and we want to send data to all of them at the same exact time due to that the application is really time critical, then is there a away to send to ...
Akkad's user avatar
  • 641
-1 votes
0 answers
30 views

TCP Connection Hanging on SYN_SENT

Consider the following client and server components: import java.io.InputStream; import java.io.IOException; import java.net.HttpURLConnection; import java.net.URL; public class client { public ...
Elliot Killick's user avatar
0 votes
0 answers
66 views

Receving wrong bytes over socket. CPP client to Python client

Sending C++ uint32_t to Python client through TCP socket. I have two functions: void send_int(uint num) { num = 255; //Assign to 255 for debug purposes num = htonl(num); ...
faliboiii's user avatar
0 votes
1 answer
20 views

Socket working properly in backend, but not in frontend(React)

const userSocketMap = {}; io.on("connection", (socket) => { socket.on("register-id", (username) => { userSocketMap[username] = socket.id; console.log(socket.id); }...
Batyrlan's user avatar
0 votes
0 answers
14 views

Master Server Sending Incorrect Commands to Its Replicas

I consider myself a beginner with TCP connections, but I wanted to learn more about it so I started a project called the "Build Your Own Redis Challenge" from codecrafters.io. I am trying to ...
jonathan nwokeji's user avatar

15 30 50 per page
1
2 3 4 5
4441