Category "sockets"

Sending voice in broadcast from android to many androids

I need to develop Android application which sends voice from Android phone to many Android phones and hear it in the real time. All phones are on the same net,

php file upload scanning using clamav, permissions on /tmp/

I'm trying to scan files (generally 100MB+ zips) using clamav on apache 2.4, php 5.6, using a socket to the clamav-daemon. I'm not using PHP-FPM. (p.s. the sock

Sending query requests over LAN

I have an inventory management app (windows) that uses sqlite3 database. The app is installed on the main PC we have in the office. I am going to have around 6

Passing JSON Data over TCP, Socket programming c#

I have created a desktop software server system, which accepts string from client and insert into database, here is the server code public class TcpServer {

Why is socket linger used after socket close?

I looked at documentation about this but shouldn't a socket linger be declared before the close so the program doesn't immediately abort before it knows what ki

TCP Send Buffer not doing anything

So i am experimenting with socket buffer sizes and have created 2 test cases Case 1[server sends data to client] First we have a server which sends 100 bytes of

How do I close a socket (ipv4 and ipv6) connection on Windows from any process?

How do I close tcp v4 and tcp v6 connections on Windows? I don't want to kill the entire process that has the open connection as this obviously will kick everyo

convert string to hex in lua?

I am going to send a byte array through socket.But I used to work in c/c++ and be new to lua. Now i have a problem,here is my question. i want to send a bytear

Scapy send packets speed up in Windows

In Windows I need to send an NBNS name query packet (which uses UDP protocol), and I need to send 255 packets and get an answer for each. With Scapy it takes a

Socket Python 3 UDP ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host

I have Socket Problem import socket serverName = "herk-PC" serverPort = 12000 clientSocket = socket.socket(socket.AF_INET,socket.SOCK_DGRAM) message = input

C# custom mail server: receive email through socket on local machine

I'm writing unit testing for email validation. I'm trying to write a very simple POP3 email listener (using sockets) so the email can be sent to my local machin

Socket programming, what about "CLOSE_WAIT", "FIN_WAIT_2" and "LISTENING"?

I am writing a socket based C application which seems to behave in a very unstable way. The code is standard socket handling on TCP port 6683, and I know it has

Use semaphores for handling sockets in C

I have the following piece of code: SOCKET sock = open_socket(szListenHost, iListenPort); if (sock > 0) { SOCKET client; struct sockaddr_in peeraddr

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,