Search found 3 matches

by mrpiano
August 22nd, 2019, 7:42 am
Forum: Help
Topic: Socket connection closes without all information received
Replies: 4
Views: 226

Re: Socket connection closes without all information received

@Max a great thanks for taking the time to inspect my code. The first problem seems to be the culprit. And the rest was there because I was so desperate to get it working. I removed the extra newline and it worked (sort of). I totally agree with you not inventing something that can be obtained from ...
by mrpiano
August 21st, 2019, 5:51 pm
Forum: Help
Topic: Socket connection closes without all information received
Replies: 4
Views: 226

Re: Socket connection closes without all information received

Ok, have been testing some more. I switched from a higher level PHP function to low-level sockets. This is my code: <?php namespace MPD\Readers; const BUFFER_LENGTH = 8192 * 1024; class MPDConnectionReader { public $status; public $errNo; public $errStr; public $nrOfBytesRead; public $version; publi...
by mrpiano
August 20th, 2019, 9:48 pm
Forum: Help
Topic: Socket connection closes without all information received
Replies: 4
Views: 226

Socket connection closes without all information received

Hello everybody, I'm new to this forum but have been a fan for several years of MPD & GMPC on Linux. Recently took up the task to build a website with similar look & feel to GMPC. As a teacher I need a nice example of an Angular website and this is a nice 'pet project'. All is going very well up unt...