aboutsummaryrefslogtreecommitdiffstats
path: root/server
AgeCommit message (Collapse)Author
2010-12-10Update communications for new packet layout and to do endian conversionJoshua Lock
Patch from Lianhao Lu <lianhao.lu@intel.com>: "1. Changed packet layout comptible for common network packet layout, and upgraded the protocol version to 5. 2. Changed server/client code to do endian conversion between host/net endian of integer field of protocol packet. 3. In client, fixed an original array dereference error when it needed multiple read operations to get a full response header. 4. In client, fixed an original error happened in the archive->filestat->get command chain. The error happened due to the mismatch of command and response. 5. In both server/code, fixed an error of misusing memset." Fixes Yocto bug #382 [BUGID #382] Signed-off-by: Joshua Lock <josh@linux.intel.com>
2008-07-022008-07-02 Richard Purdie <rpurdie@openedhand.com>richard
* src/client.c: * src/archive.c: * src/archive.h: * protocol/command.h: * protocol/response.h: * server/opserver.c: Add the mode field to the filestat structure allowing directories to be detected and ignored since recent oparchive seems to list them. Increase the protocol version since the fields structure changed. git-svn-id: http://svn.o-hand.com/repos/oprofileui/trunk@193 c51cf7d2-cc27-0410-ae70-8b2b087dd3d4
2008-06-26Squashed commit of protocol-reworkrob
2008-06-26 Rob Bradford <rob@openedhand.com> * protocol/command.h: * protocol/response.h: * server/opserver.c (server_response_new), (server_do_command_wrapper), (server_handle_command_start), (server_handle_command_config), (server_handle_command_stop), (server_handle_command_status), (server_handle_command_reset), (server_handle_command_archive), (server_parse_open_file), (server_handle_command_get), (server_handle_command_filestat), (server_handle_command_unknown), (server_handle_command), (server_handle_connection): * src/archive.c (archive_handle_response): * src/archive.h: * src/client.c (client_handle_response_status), (client_handle_response_config), (client_handle_response_stop), (client_handle_response_reset), (client_handle_response_start), (client_handle_response_archive), (client_handle_response_get), (client_handle_response_filestat), (client_channel_read_cb), (client_command_new), (client_send_command), (client_send_command_archive), (client_send_command_get), (client_send_command_filestat), (client_send_command_start), (client_send_command_config), (client_send_command_reset), (client_send_command_stop), (client_send_command_status): * src/client.h: * src/main.c (main_status_response_cb): * src/main.h: Rework client-server protocol. git-svn-id: http://svn.o-hand.com/repos/oprofileui/trunk@187 c51cf7d2-cc27-0410-ae70-8b2b087dd3d4
2008-06-03Squashed commit of fix-warningsrob
2008-06-03 Rob Bradford <rob@openedhand.com> * server/opserver.c (server_handle_command_config), (server_parse_open_file), (server_handle_connection): * src/client.c (client_channel_read_cb): Fix compiler warnings: Cast protocol buffers correctly. Fix ambiguous if..else.. with bracketing. git-svn-id: http://svn.o-hand.com/repos/oprofileui/trunk@185 c51cf7d2-cc27-0410-ae70-8b2b087dd3d4
2008-02-11 Fix the protocol for 64/32 bit machine interactionrichard
Add a sanity check for the length parameter git-svn-id: http://svn.o-hand.com/repos/oprofileui/trunk@173 c51cf7d2-cc27-0410-ae70-8b2b087dd3d4
2007-10-252007-10-25 Rob Bradford <rob@openedhand.com>rob
* server/opserver.c: (server_do_command_wrapper), (server_handle_command_archive), (main): Fix error handling to avoid memory corruption. git-svn-id: http://svn.o-hand.com/repos/oprofileui/trunk@166 c51cf7d2-cc27-0410-ae70-8b2b087dd3d4
2007-09-26Change status response to contain a version field so server/viewer mismatch ↵richard
can be easily detected. git-svn-id: http://svn.o-hand.com/repos/oprofileui/trunk@145 c51cf7d2-cc27-0410-ae70-8b2b087dd3d4
2007-09-25Add a 'config' command to the server separating this from the 'start' ↵richard
command to decrese the overhead of starting traces. git-svn-id: http://svn.o-hand.com/repos/oprofileui/trunk@141 c51cf7d2-cc27-0410-ae70-8b2b087dd3d4
2007-09-25Add command to the server to allow querying of the status of a file.richard
git-svn-id: http://svn.o-hand.com/repos/oprofileui/trunk@138 c51cf7d2-cc27-0410-ae70-8b2b087dd3d4
2007-09-24Start the oprofile-server listening on a domain socket too for localhost userichard
git-svn-id: http://svn.o-hand.com/repos/oprofileui/trunk@130 c51cf7d2-cc27-0410-ae70-8b2b087dd3d4
2007-09-20Improve avahi error messagerichard
git-svn-id: http://svn.o-hand.com/repos/oprofileui/trunk@129 c51cf7d2-cc27-0410-ae70-8b2b087dd3d4
2007-04-172007-04-17 Ross Burton <ross@openedhand.com>ross
* configure.ac: Add optional and disabled by default Avahi support. * server/mdns.[ch]: * server/opserver.c: * server/Makefile.am: Add Avahi code to announce the server. git-svn-id: http://svn.o-hand.com/repos/oprofileui/trunk@121 c51cf7d2-cc27-0410-ae70-8b2b087dd3d4
2007-04-172007-04-17 Ross Burton <ross@openedhand.com>ross
* server/opserver.c: Use GIOChannel for handling the network connection. git-svn-id: http://svn.o-hand.com/repos/oprofileui/trunk@120 c51cf7d2-cc27-0410-ae70-8b2b087dd3d4
2007-04-162007-04-16 Ross Burton <ross@openedhand.com>ross
* protocol/*: * server/*: * src/*: * Makefile.am: * configure.ac: Split shared source into protocol/, the server into server/, and keep just the client in src/. git-svn-id: http://svn.o-hand.com/repos/oprofileui/trunk@118 c51cf7d2-cc27-0410-ae70-8b2b087dd3d4