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
-
1
votes1
answer124
viewsSocket Doesn’t Send Message to Right Customers
When typed /msg nome mensagem should send this message to nome, but he sends it to whoever typed it Java manager. private Socket cliente; public static String nomeCliente; private static…
-
1
votes0
answers327
viewsconnection via socket server android, client c#, server within another network
I was able to do the communication C# -> Android without problems, but when Android connects to a local network, I do not know how to make this connection via ip, since it acquires the local IP.…
-
1
votes1
answer136
views -
1
votes1
answer103
viewsSocket Asynchronous C# receiving more than one message at a time
I am developing a C# Dll that works with Socket TCP Asynchronous for the development of some tools I am working on, the problem appears when the client receives many messages in a short period, in…
-
1
votes1
answer1447
viewsPHP with sockets
How do I use PHP with socket? Can be any type... I need to create notifications and a chat. I’ve tried many ways, but I can never. :/
-
1
votes1
answer308
viewsWinsock (VB6) vs Socket in C#
I have a code on VB6 that uses MSWINSCK.OCX to send commands to a device, the code is below. But I have to switch to C# and I’m trying to use the Sockets class, the problem I’m facing is that the…
-
1
votes0
answers33
viewsCommunication socket in Windows service
Next, I have a problem with an application I am developing, I need to carry out a communication between a Windows service and a web application, the Windows service will stay in the local…
-
1
votes1
answer695
viewsProblems connecting to my computer using external ip
I am trying to make a java application that will serve as a server so that an android application establishes a communication by Socket with the computer that my program is open on the port that it…
-
1
votes2
answers317
viewsSend text with Client Socket from a form that is displayed above another Form that is always at the top
I’m having trouble sending text messages from a Client Socket. The form that sends the text, is always displayed above the form that always stays at the top, when FormOnTop does not exist (is not…
-
1
votes1
answer81
viewsBinario to Hex
I am developing a server that accepts connections via socket. But the information received is in binary and during printing appear strange characters. I believe that the conversion or the way I read…
-
1
votes1
answer355
viewsError using socket.recv()
I am learning about python servers and I am using the socket library. But when I use the command socket.recv(1024) for the server to read what the client sent, idle gives the following error:…
-
1
votes1
answer658
viewsTCP/IP communication using Socket
I need to do a college job where it is necessary to do a TCP/IP communication something like a "chat chat" is what I have in mind to do. But some questions arose, I don’t know exactly how to ask…
-
1
votes1
answer88
viewsReading via Socket
I am reading strings sent via socket to a Java server. I get a line but when I read it it comes with break, looking like two lines. What I got should be: 78780103554880201238560006d0d8 But it comes:…
-
1
votes0
answers30
views -
1
votes0
answers243
viewsUDP client and server send data but do not receive (C windows)
Hello I am trying to create an application that performs data exchange on the network, for that there is an initial connection using TCP sockets that is working normally, then comes the use of UDP…
-
1
votes0
answers236
viewsProblem with sockets when closing client: java.net.Socketexception
Hello, good morning, good afternoon or good evening, I’m having a problem, with a system I’m creating, I thank anyone who can help. Then, this system basically passes a "protocol" to the server and…
-
1
votes0
answers117
viewsServer Socket in Windows Azure, how to capture External Ip?
I developed an App Console, which creates an asynchronous Server Socket. A similar can be seen HERE. I also have a common Web App, which consumes the information entered in the database by the App…
-
1
votes1
answer475
viewsReplicate message to all chat customers
I need to replicate a client’s message to everyone who’s connected except the client you sent. Below is the classes I have so far. How could I replicate these messages? public class Servidor {…
-
1
votes1
answer79
viewsQueue of tasks or my own solution for Thundering Herd?
I am developing a network server application in C++ and came across the problem Thundering Herd, once I designed to have multiple accepting threads (accept()) customers' connections simultaneously.…
-
1
votes1
answer41
views -
1
votes0
answers131
viewsJAVA Calculator via Socket (Client-Server)
I see you have other cases here on the site, but in my case it’s different, because it needs to be a server that works on this client, with no power alter it. All the server you have here I tested,…
-
1
votes2
answers1283
viewsJava socket issues, how to send and receive messages simultaneously between client and server?
I am working with java sockets and I was able to come across the following problem, writing the server class sent a message to the client to read, so far everything, ok!! But when I try to send a…
-
1
votes1
answer2883
viewsHow do you make a socket that actually connects to other computers?
I tried to make a Python 3.5.1 socket, but when I went to test it only connects with me. I tried to connect to another computer (from my friend), but it does not connect. Does anyone know how to…
-
1
votes1
answer58
viewsSegmentation fault in client/server implementation
Hello, I’m implementing the game 21(Blackjack) in C++ in a Linux environment, During the execution it presents the error Segmentation fault, the problem is that I am not able to identify the error…
-
1
votes2
answers584
viewsPython socket keeps open even using Close
I have a Python App that uses Socket, this App runs on XBMC’s Kodi, and when I close the App I would like to close the Socket and take down customers, the problem is that even I using…
-
1
votes1
answer235
viewsSocket I.o does not update automatically
Hello, I am using Socket i.o and when I submit a POST /Enviatemperatura, it is not automatically updating on my website. What I’m doing wrong? Node.js app.post('/EnviaTemperatura', function(req,…
-
1
votes0
answers81
viewsRouter authentication
I’m trying to get into my Dlink router using C++ and I’m having problems with the login function! I cannot interact with login and password correctly! Sometimes this error or the code appears .html…
-
1
votes1
answer2037
viewsSockets - Tic-tac-toe / Rooster Game MULTIPLAYER
EDITED POST I’m creating the so-called 'Tic-tac-toe' (or 'Rooster Game'), right now I’m trying to create a feature that allows two players on different devices - although on the same network - to…
-
1
votes1
answer468
viewsJava Runtime.getRuntime(). exec() Does not execute commands with space
I have a client socket and a server, the client sends a command to the server to run, but when the command has spaces, the server generates an exception: java.io.Ioexception: invalid null Character…
-
1
votes1
answer107
viewsHow do I send data to a socket server that has already been started within an Asynctask?
I was able to connect to the server through the application, receive and show the data sent by it. There is also no problem sending messages to the server. The problem is: once the connection is…
-
1
votes1
answer73
viewsWEBRTC - Socket Node.js
I am developing an application using the following socket system (Using Firebase) for communication: openSocket: function(config) { var channel = config.channel || location.href.replace(…
-
1
votes1
answer1438
viewsSend String via socket Java
I have my Client and Server classes. I want to send String to the server. I have tried several methods but error or it sends an empty string to the server. Someone can give me a light of what I am…
-
1
votes0
answers159
viewsSocket between C++ and C#
I’m facing a problem. I have the server code done in C++, running in Ubuntu. And I have the client code done in C#, running in windows. In the server code (C++) I came across a problem //recebe…
-
1
votes0
answers87
viewsChat in Cakephp
My colleague and I developed a chat in Cakephp 1.2 (the system is a bit old) using Ajax. But the only problem is that he needs to keep making requests to the database at all times, with a set…
-
1
votes0
answers34
viewsPython does not find the member "wait_read" in "Gevent.socket"
import gevent from gevent import socket from gevent.pool import Pool from gevent.event import Event . . . def __receive__(self): """ receive response packets """ while not self.die_event.is_set(): #…
-
1
votes2
answers682
viewsTransfer of Socket Files c#
I have the following situation, I need to transfer an xml from one application to another via network (Socket) set up the methods of client and server which I will post just below, The file is…
-
1
votes0
answers220
viewsHow do I access a serial port from an SSH remote server with PHP?
I found about SSH and socket connections to remote servers and also about connections to local serial ports, but I still can’t find out how to put things together. Scenario: I need to access the…
-
1
votes1
answer143
viewsError sending files via Java Socket
Java server. package javaapplication48; import java.net.*; import java.io.*; public class Servidor { public static void main(String[] args) throws IOException { ServerSocket servidor = new…
-
1
votes0
answers52
viewsConnection via socket, only when necessary
I have a web application that needs to update some values frequently, as the changes must be available almost in real time. For this, I run via ajax a refresh.php routine every 15 seconds, which…
-
1
votes1
answer382
viewsSocket Operation on non-socket
I’m learning to program sockets but I’m having problems when it comes to exchanging messages between the client and the server, the two codes work as "should" only the problem is time to send a…
-
1
votes0
answers290
viewsSend and Receive Arduino data for Android via Internet
I am working on a project that I have communicate an Arduino with Android via Internet(Network), I have seen some tutorials on the subject but I could not finish yet, I would like to help to…
-
1
votes0
answers207
viewsCommunication between socket and socket stream
I made the following class: class Socket { private $socket; private $loop; private $enviarMensagem; function __construct(LoopInterface $loop, $enviarMensagem) { $this->loop = $loop;…
-
1
votes0
answers101
viewsMy code does not send email to Gmail, but sends to Hotmail
My code for some reason does not send emails to Gmail, well, at least not enough emails. This is a college job, I got the score, so no rush, but it’s driving me crazy, what’s the problem? Well, I…
-
1
votes0
answers327
viewsHow to send an image correctly via Socket in Python
I am trying to send a picture of the dir directory to another client of my network. The sockets are working properly, the image arrives at the destination and is saved, but when I try to open it I…
-
1
votes1
answer706
viewsSocket in C does not compile
I’m having trouble creating a C socket on Ubuntu Linux. I’ve done everything like the guy explains in class and my code doesn’t compile. Code GNU nano 2.5.3 Arquivo: socket.c #include…
-
1
votes0
answers40
viewsJAR converted to exe does not open after being transferred via socket
I have a JAR program that I converted to EXE with Launch4j. The EXE works normal, but when I try to transfer this file via socket it just doesn’t open with 2 clicks. If I use a "java -jar.exe file"…
-
1
votes1
answer178
viewsSending data via sockets(): :Software caused Connection abort: socket write error
I have a client server program that is working when I request the communication but when it starts sending data the program generates the following error: Estabelecar conexão....... Conexão…
-
1
votes1
answer113
viewsJavafx - locked screens
All Javafx screens lock when the server is turned on. I tried to use task, but you don’t seem to be getting ahead of yourself. The program works even with the locked screens but I would like to be…
-
1
votes0
answers78
viewsC Array of Sockets
I am studying in C and I am creating a program that exchanges messages between pc’s in client/server style. Created an array of sockets and threaded them. int main () { pthread_t *servidor =…
-
1
votes1
answer123
viewsProblem with socket C
Good afternoon to you all! I am doing academic work on Sockets in C Language, in which I need to create an MP3 file transfer program in Windows. In it I have two programs, client and tracker, in…