Commit Graph

25 Commits

Author SHA1 Message Date
John Maguire a8ef587fac Fix webremote branch 2015-01-19 13:47:14 +01:00
John Maguire 583c8bf419 Initial proof of concept for web remote. 2014-05-08 15:12:55 +02:00
John Maguire bebd781fdf Reformat all non-3rd-party C/C++/Objective-C++.
Command line:
find src ext -regex '.*\.\(h\|cpp\|mm\)' -exec clang-format -i
 -style='{BasedOnStyle: Google, DerivePointerBinding: false}' {} \;
2014-02-07 16:34:20 +01:00
Andreas acb18cdcde First tries on a portable version. 2013-09-29 10:43:34 +02:00
Andreas fc78a78afc - Send songrating to client.
- Receive songrating as float (like saved in Song).
- On RemoteClient destructor check if socket is still connected before calling waitForDisconnect()
(cherry picked from commit 9237356e33)
2013-09-22 12:10:18 +02:00
Andreas 3210d016d6 Wait until socket is closed before destroying RemoteClient object. Otherwise the disconnect message is not sent.
(cherry picked from commit 6a61f8598d)
2013-08-24 21:29:04 +02:00
Andreas 662b635d96 - Do not send cover arts on file download chunks.
- Set the version in the send function, not in each function that creates a protocol buffer message.
2013-08-01 10:52:01 +02:00
Andreas 4406992554 Oops. 2013-07-16 22:17:25 +02:00
Andreas 01084de461 Fix memory leak when a client downloads tracks. 2013-07-16 22:16:05 +02:00
Andreas 6c19acdf48 Memory optimization in network remote. 2013-07-16 17:47:49 +02:00
Andreas 25b3dc8b09 Remove unnecessary parameter and comment. 2013-07-12 12:41:45 +02:00
Andreas c09d77f413 Network remote can now send songs to clients. 2013-07-12 12:31:27 +02:00
Andreas 87ea891755 Fix issue: The wrong auth code disconnect message was not sent. 2013-03-30 19:09:58 +01:00
Andreas 3f2aae602e - Send data to clients only if they are authenticated.
- Send songs of the active playlist if the active playlist changes.
2013-03-23 17:02:00 +01:00
Andreas be68c9f702 If use auth code is enabled, check if the client has sent the correct auth code before processing any messages. 2013-03-21 10:57:52 +01:00
Andreas 3e01d32a89 Fix issue 3545. Disconnect a client when the expected protocol buffer length is more than 128MB to prevent a crash. 2013-03-12 12:12:04 +01:00
Andreas e4ac2e6d82 Add debug output to pin down issue 3545. 2013-03-11 22:22:22 +01:00
Andreas 28632cdb37 Fix version set. 2013-02-08 19:42:46 +01:00
Andreas 0c7354dba6 Send the version when disconnecting because of an invalid auth code. 2013-02-08 19:27:56 +01:00
Andreas a4d26bc249 - Actually fix the SIGPIPE (Broken Pipe) Error. It was caused by the QTcpSocket::flush().
- Revert previous SIGPIPE fixes.
- Rename method in RemoteClient to match its function.
2013-01-28 22:45:26 +01:00
Andreas a2c07527bf Included signal header file in main.cpp. 2013-01-28 15:40:00 +01:00
Andreas fcc0da554b Moved signal(SIGPIPE, SIG_IGN) to main. 2013-01-28 14:39:31 +01:00
Andreas a40aa6fb8d Added security methods to prevent SIGPIPE termination. 2013-01-28 14:21:04 +01:00
Andreas 9472c5ace2 - Fixed a bug where clementine crashed when restarting the server (e.g. changed setting). Cause by wrong connect statement.
- Added set track position feature in proto
- Added authentication method
- Clementine sends now a disconnect message when closed
2013-01-23 20:02:12 +01:00
Andreas 04ccdbbf08 added version to protocol buffer message
changed client handling
only non public ips can connect (can change that in options)
2013-01-10 21:21:55 +01:00