Category "sockets"

Sending image over sockets (ONLY) in Python, image can not be open

I want to upload the image from client to server using ONLY sockets in Python. I designed a very simple protocol flow of how I would like to do this: CLIENT

How to tell if Java SSLSocket has data available?

When I was using regular Sockets, I could call getInputStream() and use available() to see how many bytes were available. I switched to SSLSocket, but now avail

socket.io the room in the rooms dictionary is 'undefined'?

so I'm emitting an event from my client that sends a string containing the socket/roomID I'm trying to connect to in it. When the data is received, it's handled

Socket Programming, Casting sockaddr_in to sockaddr. Why?

Here is a sample socket programming snippet from the client side. My question revolves around the type-casting that casted sockaddr_in into sockaddr. My questio

Multiprocessing, file not found

I'm using AlphaPose from GitHub and I'd like to run the script script/demo_inference.py from another script I created in AlphaPose root called run.py. In run.py

Having multiple sockets for same Context() and same port in ZMQ

My current system takes input stream from cameras, each camera in a separate instance, and apply Computer Vision models on each camera (Object Detection, Object

Unable to initialize MSAL within organization linux sever due to socket timeout

I have register an Azure App with delegated permission. I also have local anaconda instance install on my desktop. Now when I initialize MSAL using below code,

Can we send data from an android device to another android device directly (p2p) without server in the middle?

I need to send data from one android device to another android device directly(p2p) after they find each other through a server. I read some stuff that this can

NGINX: connect() to unix:/var/run/php7.2-fpm.sock failed (2: No such file or directory)

I've just recently moved my websites from apache2 to Nginx as my new web server backend. got to love problems aha. HTML files in the web host director work pri

Imitate S7 SIemens PLC

I am trying to imitate a SIEMENS S7 PLC so that scanners like Nmap, Zgrab and NESSUS will detect my Raspberry as an PLC. When looking at the NSE script voor Nma

Socket communication between Android app and web browser

My Android device+app is continuously sending data every few ms, and I'd like to receive it on my web browser application that I'm building with JavaScript/HTML

Flutter Socket io Error on WebSocketException: Connection to was not upgraded to websocket

I use this package and it work properly on test websites but in app I got this Error WebSocketException: Connection to 'https://socket.excopro.com:0/socket.io/?

Creating packet sniffer in c++

I have before created a simple packet sniffer using python, with the following code: import socket import os import time host = "192.168.0.164" if os.name ==

How to download a file from http using C?

I spent the last days trying to figure out how to download a file from an URL. This is my first challenge with socket and I'm using it to have an understanding

Notification send to user in nodeJS

Following code is for back end which is implemented in NodeJS for socket call. const socket = require('socket.io'); let Users = []; module.exports = function

What's the return value of Socket.accept() in python

I made a simple server and a simple client with socket module in python. server: # server.py import socket s = socket.socket() host = socket.gethostname() port

how to install Socket.io over node.js?

I will need any help i can get to install socket.io over node.js for server. I have already installed the node from the site. I am interested in step- by step(

Receive UDP packets with python, packet loss

I'm having a lot of packet loss using UDP in python. I know I should use TCP if I don't want packet loss, but I don't have (full) controll over the sender. It'

How to save php socket resource in database?

I am creating a socket in php with socket_create and would like to store the received socket in a database (to access from other php code). However the socket i

Play java video streaming with player

I want to steam live video using Java to a player (FlowPlayer, JW Player, etc) I found an example but it is using java servlets: Servlet code: byte[] data =