7 #include "ace/Log_Msg.h"
8 #include "ace/OS_Memory.h"
11 SM_Server::demux (char *packet
, int &packet_length
)
13 switch (GET_PACKET_TYPE (packet
))
15 case Options::PROTO_USR
:
16 ACE_NEW_RETURN (this->pm_server
,
20 case Options::PROTO_ALL
:
21 ACE_NEW_RETURN (this->pm_server
,
25 case Options::PROTO_FLO
:
26 ACE_NEW_RETURN (this->pm_server
,
30 case Options::PROTO_RUSER
:
31 ACE_NEW_RETURN (this->pm_server
,
38 Options::program_name
));
42 packet_length
= SUBTRACT_PACKET_TYPE (packet_length
);
44 if (pm_server
->decode (SKIP_PACKET_TYPE (packet
),
48 if (pm_server
->process () < 0)
55 SM_Server::mux (char *packet
,
58 return pm_server
->encode (packet
, packet_length
);
61 SM_Server::SM_Server ()
65 SM_Server::~SM_Server ()