Category "sockets"

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 =

C# UDP Server Asynchronous Multiple Clients | SocketException When Client Disconnect

I've been working on a socket server program in C# (I was inspired from this post) and my problem is that when a client disconnects an exception "An existing co

How to create UDP socket connection to receive data from gstreamer udpsink?

I want to create a UDP socket connection to receive data from GStreamer udpsink. When I create a Gstreamer pipeline using udpsink, VLC can play the stream. I wa

Sending a screenshot (bufferedImage) over a socket in java

I am sending a bufferedImage over a socket and I am using the example found in this post: Sender BufferedImage image = ....; ImageIO.write(image, "PNG",

Send client side data Queue to server side through Tcp/IP

I wanna send data from client to server. There are two queues. in client side and in server side. I want to my client to be connected to the server and send all

one single ObjectOutputStream for multiple use with sockets

I'm trying to make a very basic example of a network connection where I use an ObjectOutputStream, ObjectInputStream and sockets. The client sends the string "H

Writing and reading using socket

This is my code using UnityEngine; using System.Collections; using System; using System.IO; using System.Net.Sockets; public class s_TCP : MonoBehaviour { in

How do I debug error ECONNRESET in Node.js?

I'm running an Express.js application using Socket.io for a chat webapp and I get the following error randomly around 5 times during 24h. The node process is wr

Could not decode a text frame as UTF-8.

Now i have struggled to get this bug fixed, but i cannot find out how to fix it, i have searched and found a solution, but it wasn't exactly a solution for the