Most voted "socket" questions
A network socket (socket) is an endpoint of a communication flow between processes over a computer network. This tag is different from websocket.
Learn more…352 questions
Sort by count of
-
29
votes2
answers10012
viewsWhat are Network Sockets and Websockets?
I am studying real-time Node.js programming and I have arisen some doubts regarding network sockets. I found nothing explained in detail, so I decided to open the question. What is a network socket…
-
28
votes2
answers1891
viewsHow to design a basic socket client application
First of all I apologise for the long text, and for the various points raised. I thought it best to cast everyone on a question just because they are interrelated and because I think anyone with…
-
10
votes1
answer8664
viewsSocket between 2 clients and 1 C server
How to receive two connections? The system consists of 2 clients and 1 server, the server must receive the connections and initiate a sequential conversation with the clients. I was able to…
-
9
votes1
answer589
viewsSSL socket dying on client and no errors on server
I have a problem with connections with Sockets ssl in python When performing a stress test on the SMTP daemon I am writing the client some sending threads die with "Connection reset by peer" ,…
-
9
votes1
answer296
viewsWhat are Sockets? And how to develop in C#?
I have to develop a socket, but I don’t know what it is or how it works! I wanted to know what it takes to create a C#Socket, I am using Visual Studio as IDE.
-
8
votes3
answers637
viewsDeploying queues for Websocket
I’m developing a server WebSocket which will control multi client connections, will basically function as a chat, will be a kind of game multiplayer, after many researches and some tests I realized…
-
8
votes1
answer479
viewsSocket "cutting" bytes into two packets
I am developing a Socket communication of my program with the server. This server is responsible for bridging between my program and the users that are connected to it, that is, the user when…
-
7
votes1
answer390
viewsHow to create a loop to send an event in socket.io?
I have an architectural problem. I have a code using socket. in nodejs: socket.on('images',function (aData){ ... socket.sockets.emit('show', JSON.stringify({imagens : json})) }); I’m trying to…
-
7
votes1
answer326
viewsC#. Net blocking or non-blocking?
Do the System.Net.Sockets library, using asynchronous operations such as Beginreceive(), Beginread() and Beginsend() work in blocking or non-blocking ways? If I have 100 connections, it will be 100…
-
7
votes2
answers963
viewsHow to get the public IP of a connected user via socket?
I need to get the IP address of a user who will remotely connect to my program, and list it, the program itself is a chat where only the server will store the IP address of the users. Client…
-
7
votes2
answers2973
viewsWhat’s the difference between socket and port?
Developing a app service-oriented, I came across the following question: What is the difference between door and socket within the computational framework?
terminology socket connection networks architecture-computersasked 6 years, 10 months ago Alexandro Campos 81 -
7
votes1
answer730
viewsClient-Server Chat application with Sockets does not work
I’m doing a project and I got to the communication part between the server and the client and I couldn’t get the output I wanted (image output). The goal is for the server and client to communicate…
-
7
votes1
answer145
viewsHow to exchange information in full-duplex mode?
Note the two codes below: Client. c: #include <stdio.h> #include <stdlib.h> #include <string.h> #include <netdb.h> #include <unistd.h> #include <arpa/inet.h>…
-
6
votes1
answer5046
viewsClient/Server (Windows) with C Sockets
I’m trying to write a program written in C, which is able to upload a file or text to a particular server. I searched a lot on google but most of the tutorials are aimed at linux environment, either…
-
6
votes1
answer1432
viewsIs it possible to know how many customers are connected to Serversocket?
How do I see how many customers are connected to my ServerSocket java?
-
6
votes1
answer1276
viewsMulti Thread Socket Server - Java Server and C++ Client
I have to develop a Mini Server Socket Multi Thread (college work) in Java and need to make a Client in C, for example, can be in any language, but I chose these two. How do I send the Client values…
-
6
votes2
answers1997
viewsChat with notifications in the app
I have an Android application that inside it, the user can send message to the administrator(eu). I wanted to do something more cool in this communication, I would like when I answered the message,…
-
6
votes1
answer1768
viewsWhat is a loopback interface?
I was going through socket connection issues on my server: Causing the error [could not bind to "tcp://127.0.0.1:8843". Cannot assign request Adress]? I managed to solve the problem. The technician…
-
6
votes1
answer1969
viewsHow to receive multiple socket requests on one server?
Hello! I’m doing a server/ client schema program in Python in which I wanted to have only one server and several clients. Imagine having 3 clients each make a request to the server via socket…
-
6
votes2
answers1129
viewsHow do I know if a socket client has disconnected?
I have a server that has a List with all connected clients. Client connects and connection is managed in a unique thread with infinite communication loop. The problem when I drop the client or close…
-
5
votes2
answers5867
viewsCommunication between applications using socket through UDP making Multicast
I’m trying to communicate between applications where one of them transmits a certain message and the others just receive, I don’t know the IP address of the ones that will receive and even if they…
-
5
votes2
answers188
viewsC# Difference between Beginaccept and Acceptasync
What is the difference between the two asynchronous forms? Which has better performance handling sockets and handling thousands of connection simultaneously? Example for Beginxxx:…
-
5
votes2
answers7594
viewsSend objects via socket
I have a chat that exchanges messages (String) to each other. Everything is working correctly. However, now I want to start sending objects via Socket, like for example, a class that has some…
-
5
votes4
answers64762
viewsMysql installation socket error
I am unable to uninstall or make Mysql 5.5 work on my Ubuntu Linux 14.04.LTS, every time I try to access it, I get the following message: ERROR 2002 (HY000): Can’t connect to local Mysql server…
-
5
votes1
answer438
viewsHow to implement timeout in recv() in socket. h
I’m wondering if there’s any function to put a timeout together with recv() using Socket.h. Code example: // Variaveis UINT in_socket_handler; struct sockaddr_in server; // Cria o Socket…
-
5
votes1
answer555
viewsSome questions about socket
I’m taking a look at an example of microsoft itself and I’m having some doubts. Example taken from this link: https://msdn.microsoft.com/pt-br/library/bew39x2a(v=vs.110). aspx Let’s imagine a chat…
-
5
votes1
answer221
viewsIs it possible to use Websocket connections in Apache?
With the emergence of Websockets in the browsers, I also had the interest to make some implementations in some applications. Of course with the idea comes the initial doubts. One of the questions I…
-
5
votes1
answer124
viewsAsync methods - return string from UDP
I am developing a code whose goal is to send a package with a string in broadcast and then read the answer (if any), however I want to create a method that just returns the string of the answer. I…
-
5
votes1
answer112
viewsProblems comparing two Ipv6 addresses
Lately I’ve been working on several "test codes" to exercise the "head", specifically codes involving the API of sockets of Unix. The most recent code I wrote was a simple server that receives a new…
-
5
votes2
answers141
viewsconnect python 3x to a server
I have been studying python for some time and I was trying to create a script to connect to a server and get a response from it, but when I use the code I get an error that I can’t fix My code…
-
5
votes2
answers139
viewsSend message confirmation received UDP
Good afternoon, I have the code for Udplisten, which causes PC1 to send a message to PC3 via an interlocutor (PC2), however, after the message reaches PC3, it has to send to PC1 to confirm that it…
-
4
votes2
answers495
viewsServersocket IP lock?
I have developed a socket system in Delphi. It is possible to block an IP to not connect to my server? Obs: The components were used: SERVERSOCKET and CLIENTSOCKET.…
-
4
votes1
answer358
viewsDoubt about the socket.io functioning
I have a question regarding the socket.io that I have already researched in several places and most of a rolled up or uses some obscure terms, but ends up not answering the doubt directly. The…
-
4
votes1
answer248
viewsChoosing encryption in SSL
How can I define exactly which encryption I will use in the routine below? I want to define for example that the encryption to be used is the AES, or DES, or 3DES... // Setup truststore KeyStore…
-
4
votes1
answer876
viewsEncapsulate Tclientsocket connections in Multithreads
I have a variable number X of electronic equipment (Weather stations) in my local network, each equipment provides a Serversocket connection with an IP and a specific Port, I have an application…
-
4
votes2
answers108
viewsCast in sockets
Guys wanted to understand what the reason of doing these cast below is just by aesthetics? What does it really affect in the code? struct iphdr *ip; char *buffer ip = (struct iphdr*) packet; icmp =…
-
4
votes1
answer987
viewsNotifications with Spring
how to implement a system of notifications that receive an example notification counter in real time: My question is that when it is inserted there in the bank one more line and go from 4 to 5…
-
4
votes1
answer1026
viewsProblems with chat sockets with NO-IP host
Well, first of all, I’ve searched a lot of sites, including here, how to do this. I tested codes and modified but still, I kept getting errors. The problem is the sockets to make the connection. I…
-
4
votes2
answers212
viewsCreating buffers in PHP
Staff need to create in PHP a buffer (string) from a data set (array) to send via socket. In this buffer i want all attributes of the set that are stored in it, obey its size. Example: Whether I…
-
4
votes1
answer842
viewsWhat is and what is the sockaddr_in structure for?
Lately I’ve been wanting to program a network sockets in C++ but as the matters on the internet about it are a little limited coming to show only how to program the sockets without explaining in…
-
4
votes1
answer149
viewsCustomers do not communicate in the same multiplayer game in Java
I’m trying to make a simple tank multiplayer game by implementing chat. The game and the chat are all ok! However, I can’t get 2 customers to view the same object Arena. In this case, each customer…
-
4
votes2
answers364
viewsHow to block a website with Delphi, vbs or msdos?
I have a user control and monitoring system and would like to block a site using Delphi or even MSDOS or vbs commands, or even using Sockets(I don’t know if it’s possible)? What I have so far is…
-
4
votes1
answer420
viewsMulti Thread Socket Server and its Clients talking to each other
I have a question that is killing me and I would like to share with you, maybe someone has the answer or a way forward to address this doubt. I have good experience with Web/Desktop development,…
-
4
votes1
answer110
viewsIt is possible to access a port via TCP/UDP from a web application
It is possible to send data to a port (e.g.: 5151) via TCP or UDP from a site, on the front end, using Javascript for example. I’ve been searching for a while and the closest I’ve come so far is…
-
3
votes2
answers1435
viewsHow do I receive messages from a GPS that uses GPRS via PHP?
I have a Gosafe G91i device, a GPS device that sends your location from time to time to an IP and a port that I can set up. At the moment, are set IP and port of an online server (Orange gps-trace)…
-
3
votes1
answer210
viewsObject instantiation failure: only the first is created
I have a class in JAVA which is a Server. I put in this server class the port argument, for example. If I were to call this class I would do so: new Servidor(5000);. 5000 is the argument of this…
-
3
votes1
answer107
viewsSocket with Timertask
I want to request the serverSocket a response (some information) every 5 seconds. I rode my socket and I’m wearing a TimerTask to execute a method every 5 seconds, but only the first execution is…
-
3
votes2
answers567
viewsJava server disconnects idle users after 5 minutes
I’m using this Java methodology for connection between client and server, I copied it from the internet, and it helped me a lot, but the server allows the user to stay connected while he’s sending…
-
3
votes1
answer5312
viewsC# Socket Refusing Public Connection
I am using the server and client example below to make a TCP connection via internet and in the client returns the following message: Additional information: No connection could be made because the…
-
3
votes1
answer294
viewsC socket for Linux (how to pass a struct?)
I have a client/server application and need to transfer a struct to the server, but this way is not working: typedef struct{ int pontos; int vidas; int flagReiniciar; int flagAcabar; int…