Skip to main content

All Questions

Tagged with
0 votes
0 answers
35 views

Differentiate between client file download pause and abort from a browser in a java server

I have a Java ServerSocket on an android sharing app that shares files over the network via the HTTP protocol. I want to tell the user who uses the ServerSocket on his phone whether the other user ...
Ammar's user avatar
  • 195
1 vote
1 answer
105 views

File uploads get corrupted when reading a POST request body

I'm building an android app that needs to receive a file from a web application. I'm using Java ServerSocket to deal with that. I handled the POST request headers and all works fine but when I write ...
Ammar's user avatar
  • 195
0 votes
0 answers
65 views

python pyaudio problem (Traceback (most recent call last))

import pyaudio import socket import select import sys FORMAT = pyaudio.paInt16 CHANNELS = 1 RATE = 44100 CHUNK = 1024 audio = pyaudio.PyAudio() stream = audio.open(format=FORMAT, channels=2, rate=...
Gürkan's user avatar
0 votes
1 answer
89 views

Writing bytes in client less than expected [closed]

I'm trying to use a UDP socket in C++ to send data between a client and server as a project in my university. The file I'm trying to send is an HTML document called s.html. It's 1,814,247 bytes in ...
Abdullah Taman's user avatar
1 vote
1 answer
79 views

PHP SSL "older" stream sockets close unexpectedly

I am developping a SSL websocket server, PHP 8.2. I can accept SSL conections with no problem. Issue is: Connection A, then B then C then D are accepted. When conection C closes (clients make the ...
Ludo's user avatar
  • 11
0 votes
1 answer
359 views

AsyncIO Streams works with FastAPI but doesn't works separately

So I have this class for async handling Socket connection. # socket_service.py class Sockets: reader: asyncio.StreamReader writer: asyncio.StreamWriter message_queue = [] async def ...
RoyalGoose's user avatar
0 votes
0 answers
26 views

Cause of java.io.OptionalDataException in serversocket programming [duplicate]

I am writing a serversocket program, and i am trying to pass objects (in this case: ParticipantWorkState) into ObjectOutputStream and read it via an ObjectInputStream. The ParticipantWorkState class ...
Egg's user avatar
  • 9
0 votes
0 answers
195 views

Flutter BLoC Not Updating UI When Data in Stream Changes

I'm working on a Flutter app that uses the BLoC pattern for state management, and I'm having trouble getting my UI to update when the data in a stream changes. Specifically, I have a SocketBloc ...
Yunesh Shrestha's user avatar
0 votes
1 answer
1k views

python: make websocket connection to elevenlabs with websocket-client

In elevenlabs you can now use the stream feature also with input stream. However, a socket connection must be established for this. Unfortunately I have to implement the websocket connection myself ...
themweo's user avatar
0 votes
0 answers
141 views

File transfer over Socket in C#

I have managed to write code to transfer file over Socket in C# between two PCs. I have been scratching my head for a couple of days, trying to figure out where the problem lies. The seems to work ...
Guezt's user avatar
  • 85
0 votes
1 answer
115 views

how to cast various objects from an objectInputStream

I'm practicing socket communication with java, especially exchanging objects that the server and client know. if I only ever send one class type (Message), I can easily cast and rebuild it: while (!...
jacopo2199o's user avatar
0 votes
1 answer
385 views

Equivalent of InputStream and OutputStream in .net core c#

EXAMPLE Socket socket = new Socket(host, post); OutputStream out = socket.getOutputStream(); InputStream input = socket.getInputStream(); How to organize threads in C# in a similar?? My thoughts on ...
Dmitry's user avatar
  • 1
0 votes
0 answers
47 views

PHP Server Code to Process an Image Upload

I would like to write some code in PHP to process the server side of an image stream being uploaded via a socket connection. I already have the client side code which is written in java Socket soc;...
Justin Farrell's user avatar
0 votes
0 answers
238 views

Raspberry PI camera stream, ethernet communication

I am trying to use Rpi PI 4 for video stream. I used some example from web attached below. This program create server from Rpi and when i write IP of Rpi to my browser and have Rpi and PC on the same ...
Neo159's user avatar
  • 3
0 votes
2 answers
234 views

Determinig end of stream in .Net for Network Stream Reading

I start learning to work with socket recently. The behaviour I see in documentation is that when reading stream with a buffer, it return zero to indicate reader reached end of stream. private static ...
Mehdi Mowlavi's user avatar

15 30 50 per page
1
2 3 4 5
39