From 5d59af848bc14ead570fcad971971b9a2faaab7c Mon Sep 17 00:00:00 2001 From: koinec <> Date: Mon, 7 Dec 2009 13:40:46 +0000 Subject: [PATCH] *** empty log message *** --- deamon/drd64_debugd_cmd_attach_link.c | 68 +++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 deamon/drd64_debugd_cmd_attach_link.c diff --git a/deamon/drd64_debugd_cmd_attach_link.c b/deamon/drd64_debugd_cmd_attach_link.c new file mode 100644 index 0000000..44e8101 --- /dev/null +++ b/deamon/drd64_debugd_cmd_attach_link.c @@ -0,0 +1,68 @@ +/*DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64 + + D r . D e a m o n 6 4 + for INTEL64(R), AMD64(R) + + Copyright(C) 2007-2009 Koine Yuusuke(koinec). All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + + 1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY Koine Yuusuke(koinec) ``AS IS'' AND ANY +EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL Koine Yuusuke(koinec) OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED +OF THE POSSIBILITY OF SUCH DAMAGE. + +DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64*/ + +/* File Info ----------------------------------------------------------- +File: drd64_.c +Function: +Comment: +----------------------------------------------------------------------*/ + +#include"drd64_debugd.h" + +int + Drd64_Debugd_Cmd_AttachLink( + int i_recv_id, + Drd64_PacketHeader *p_phead, + Drd64_Debugd_MasterInformation *p_debugd ) +{ + int i_wlen; + int i_fds; + Drd64_Server_RecvStatus *p_recv; + + DRD64_LOG_VERBOSE("[STAT] CMD: AttachLink Start "); + + p_recv = Drd64_Server_RecvStatus_GetRecvStatus( i_recv_id ); + assert( NULL != p_recv ); + i_fds = p_recv->i_fds_id; + + p_phead->w_packettype = DRD64_PACKETTYPE_ANSWER; + + i_wlen = send( i_fds, (void *)p_phead, DRD64_PacketSize(p_phead), 0x00); + DRD64_DEBUG_PRINT("send",i_wlen,"FD",i_fds,"errno",errno); + if( i_wlen != DRD64_PacketSize(p_phead) ) + { return DRD64_DEBUGD_DISPATCH_RESULT_CLOSE; } + + DRD64_LOG_VERBOSE("[STAT] CMD: AttachLink Ended "); + + return 0x00; +} + + +/* EOF of drd64_.c ----------------------------------- */ -- 2.11.0