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
-
2
votes1
answer756
views -
2
votes0
answers843
viewsDoubt how to mount socket in old game in Python
I have a work in the course of programming in networks and we were asked to use a game code and make a client and server using sockets, but my teacher’s explanation was very vague and he does not…
-
2
votes1
answer451
viewsJava proxy configuration on Linux system
I have proxy configuration on my network, and to run java I need to set the proxy properties on it,. In windows is not necessary, it is working perfectly. "Exception in thread "main"…
-
2
votes0
answers60
viewsSend indeterminate amount of JSON strings via socket
have an application cliente/servidor where the client makes a request to the server and the server makes a query to a banco de dados and then returns this data to the client in the format JSON, as I…
-
2
votes0
answers53
viewsScreen updates only once when using multiple socket connections
I’m creating an android application where I trade data with a java socket server on the pc. And in the same application I will open some threads that run servers for a direct connection with…
-
2
votes1
answer5801
viewsHow to Create a communication between two clients via server using socket
import socket from threading import Thread def client(h, p): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) # IPv4,tipo de socket s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) while…
-
2
votes0
answers25
viewsDifficulty in execution
I’m doing a show Served in Socket Python using interface Tkinter, cannot exchange script information, to enter into the Tkinter. when I run both of them importing the socket I have no way to execute…
-
2
votes1
answer56
viewsBi-Directional Communication - How to get status?
Library that I use: https://github.com/rdavisau/sockets-for-pcl Follows code: Server: static async Task Run() { var listenPort = 11000; var listener = new TcpSocketListener();…
-
2
votes1
answer501
viewsBidirectional Communication - Send and Receive string value correctly
Follows code from server: int port = 11000/*PortGranter.GrantPort()*/; TcpSocketListener listener = new TcpSocketListener(); var tcs = new TaskCompletionSource<ITcpSocketClient>(); await…
-
2
votes0
answers166
views(Socket) Client and Server Connection - how to get Cmd-> Client (Python) return
I want to execute a command in the client’s Cmd and return the values to the server. I Already Managed to Execute the command in the client’s Cmd... Now how do I return the values to the server? The…
-
2
votes1
answer967
viewsJava socket that sends and receives
I’m doing a college project and I’m using an ESP8266 microcontroller. At first, I wanted to create a Socketserver and a Socketclient in Java, which would be able to both receive messages and send to…
-
2
votes1
answer71
viewsDoubt Socket Server
I have a question in the behavior of the chunk of a code that is creating a socket server, follows the server code: public class Server { public static void main(String args[]){ try { ServerSocket…
-
2
votes0
answers362
viewsReceived fatal Alert: handshake_failure when class is run by Schedule - JDK7
I have a class that integrates with Woocommerce, when I run the class when I raise the project not httpCliente error ( 4.5.3) I get Httpresponse 200 ok, I have two registered api, 1°…
-
2
votes1
answer90
viewsWhy is my server code not working with Ipv6?
I recently wrote a small C server using the sockets API from UNIX only for some tests. The program works perfectly with Ipv4, but the same does not happen with Ipv6... Follows the code: #include…
-
2
votes1
answer94
viewsIpv6 server accepting Ipv4 connections
I wrote a server in C using the API socket UNIX for some tests and I ended up encountering a "weird" problem: The server is cutting connections Ipv4 being that it was programmed to accept only…
-
2
votes1
answer133
viewsWhat is the effect of the bind() function on a client code?
I was wandering through Google Images behind a state diagram for server and client model and I ended up finding this here: I aroused curiosity regarding the image above due to the fact that the use…
-
2
votes1
answer123
viewsSocket with threads in Java
I have this code that involves socket TCP and threads. How do I get the server to send a message when the client connects? In this case the client sends the message and the result has to return to…
-
2
votes1
answer844
viewsMultiple connections with PHP Socket to receive HTTP messages and save to Mysql
I need to set up a port on my dedicated server that runs the Centos 6.10 kvm OS, so that it receives messages (geolocation) from some trackers via TCP (IP:PORT), and saves this data in the Mysql…
-
2
votes1
answer70
viewsSerialize/Deserializar struct for sending via sockets
I have a struct that I would like to serialize/disallow to send in a connection via sockets using the function send and recover that struct with the function recv, what are the ways I can solve this…
-
2
votes1
answer162
viewsI need to connect to an external socket server via URL
First of all, I know there are thousands of tutorials teaching sockets internet throughout. However, I did not find anything specifically for my difficulty, so I resorted to ONLY. I need to create a…
-
2
votes2
answers709
viewsHow to get the connection id of a socket on a js Node server?
Hello, I am studying sockets with Node js for games and I would like to know how to recover the id of a client socket connection with the server, I have tried several ways but did not succeed! My…
-
2
votes0
answers27
viewsConnection terminates when sending a message from the client to the server (c/c++ socket)
I am using the codes below to make a client-server connection. The client I am making myself and the server for the time being picked up on the internet. The connection between them is made and the…
-
1
votes2
answers1091
viewsI made a client/server socket application but only works by emulator
I made a client/server socket application, where the client is an android device and the server is made in java. At first this all ok, in the emulator it runs correctly, but when I install the apk…
-
1
votes1
answer58
viewsC# Stream.Beginsend
As you can see in the link below, the Streamreceiver method uses the Beginread method to read asynchronously, whereas the Senddata method does not use asynchronous writing, which is the logic to…
-
1
votes1
answer207
viewssocket failed: EACCES (Permission denied)
He was creating an Android project that makes him communicate with a Windows machine through Sockets, being the machine the server, and the mobile device (Samsung Galaxy S3 MINI) the client. I…
-
1
votes1
answer226
viewsExtend Tclientsocket Delphi class
I would like to know how to extend the Tclientsocket class in Delphi, to put new features without losing the old ones, with examples. Hug.
-
1
votes1
answer154
viewsDownload with Sockets
I’m using the Luasocket and wanted to download files with it, but I don’t know how, I managed to download text file like this: local file = io.open("Blabla.txt", "w")…
-
1
votes2
answers117
viewsTransfer all files from a directory
I have an application that transferred files via socket, but one at a time. I need this application to transfer an entire directory. I must provide a directory, EX: "c: users PASTA_DOWNLOAD Server"…
-
1
votes1
answer1192
viewsHow to encrypt and decrypt data to be transmitted via sockets?
I have a program that logs in with my server, however the connection is without any protection. I looked for some ways to protect but it seems that some of them have a pass code on the client, but I…
-
1
votes1
answer119
viewsC# Manualresetevent
What good is the code below the Manualresetevent connectDone? If I use it, when running the main thread hangs, as I am using this code within the Unity3d(game engine) it hangs the entire process and…
-
1
votes1
answer92
viewsRemove http header in socket C
I made a socket in C. This program is command-line operated and compiled over Linux. It takes as parameter a complete URI and a file name, and then connects to the server, retrieves the page and…
-
1
votes1
answer131
viewsPassing an id to server socket
Each client contains a fixed id would have as I amnesze that id to the server to then be able to send messages to clients with specific ids? Server: import java.io.IOException; import…
-
1
votes1
answer83
viewserror when comparing C-torque
I have a Perl program that connects to a socket, receives binaries in this socket, reads the incoming binaries, compares them with other binaries in a buffer so I know if there are these binaries in…
-
1
votes1
answer191
viewsData type via socket
Is there any way/trick/algorithm that allows me to know what kind of data is coming via socket? I can send both text and files via socket, but I’d like to know what I’m getting to treat differently.…
-
1
votes0
answers86
viewsMeasure RTT in JAVA
Is there any way to measure latency between a client and a JAVA server? I intend to create a proxy server that will redirect the request of a client to one of the other two servers, and one of the…
-
1
votes0
answers77
viewsArduino android and socket
How to make Arduino communicate with android using socket network protocol, to send and receive data? Traffic information captured in Rduíno, in this case of humidity and temperature.
-
1
votes3
answers1389
viewsHow to differentiate device type from IP?
How to know what type of device is using an IP? I wonder if there is any way to validate whether an IP belongs to a computer, a mobile device, etc. This is to differentiate device types from IP. I’m…
-
1
votes2
answers295
viewsMultiple device connections using Sockets
I have a method that connects to a card reader via TCP/Ip (ip, port) using Sockets. For the 1:1 connection is working, but now I need to connect to more than one device simultaneously. I would have…
-
1
votes1
answer722
viewsDns.Resolve() vs Dns.Gethostentry()
The method Resolve is as obsolete and Microsoft guides to use the GetHostEntry. However when using GetHostEntry the exception occurs: This host is not known When I use Resolve there is no exception…
-
1
votes1
answer128
viewsTroublesome socket response on Android NDK
I’m trying to implement this library, Parson, in C, but when I try to manipulate the data obtained via connection socket(ONLY link), I get a null, what doesn’t happen when I manually put the json in…
-
1
votes1
answer9581
viewsMulti-thread in Java Socket
I have no Java experience, so once again, I turn to Stack to help me, I have a basic code from a server that receives a message from a client via socket and the code from that client, I need to…
-
1
votes1
answer53
viewsJava Socket Specification and Implementation
I created a class MySocket that extends java.net.Socket, but I saw that class java.net.Socket implements the interface java.io.Closeable, and my question is: In my class MySocket I am obliged to…
-
1
votes1
answer726
viewsDifference between recv and read, send and write
I am transmitting and collecting data from a connection using Sockets, to send the data to the server, you can use the commands send and write, and to receive the data recv and read. There is a…
-
1
votes0
answers43
viewsSocket X Android
I’m doing a study of socket on Android (A app of chat with some more functions on other screens) but due to the little knowledge at the time I was 'stuck' at one point. How can I create a single…
-
1
votes1
answer898
viewsPython sockets disconnect client
I would like to make with a command of the server, was disconnected a client specific. from socket import * meuHost = '' minhaPort = 50007 sockobj = socket(AF_INET, SOCK_STREAM)…
-
1
votes0
answers77
viewsHow to change dev-master releases to stable
I’m creating a package for sockets in PHP for Laravel, but I can’t just use Composer require because the package is in dev-master and of course I don’t want to change all my main application to…
-
1
votes0
answers38
viewsRuby Winapi Socket TCP/IP
Hello, Currently I need to create a ruby connection using winapi only. Everything works perfectly, however, when the client sends an information, it needs EXACTLY ONE ANSWER, if there is no answer…
-
1
votes1
answer1139
viewsError: An operation has been attempted on an item that is not a socket!
I was trying to make a very simple door scanner, [Winerror 10061] No connection could be made because the destination machine actively refused them (q was the expected) for [Winerror 10038] An…
-
1
votes0
answers36
viewsHow to send an object from one page to another without nodejs
My question is the following know that there is the nodejs to make the connection from Servers to customers. How can I get from one page to send a json type object to another. It would be something…
-
1
votes1
answer2796
viewsTransfer of python files, client-server
Guys I have a problem in my code, I need to develop an application that is able to send a file to a server and also be able to recover files from the server I’m using a tuple to send the data to the…