From 6c063ac7b8bebb8e58613d45dea731c663bd8427 Mon Sep 17 00:00:00 2001 From: Chris Frey Date: Fri, 16 May 2008 16:41:59 -0400 Subject: [PATCH] src/socket.cc: Source code reorganization Reorganized src/socket.cc to match class private/public order (no code change, only move). --- ChangeLog | 2 ++ src/socket.cc | 30 +++++++++++++++--------------- 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/ChangeLog b/ChangeLog index 95dc09ed..6faf48ad 100644 --- a/ChangeLog +++ b/ChangeLog @@ -9,6 +9,8 @@ Release: version 0.13 - 2008/05/?? FIXME - this localized sequence checking may make all the calls to CheckSequence() obsolete which should probably be cleaned up someday, if so. + - reorganized src/socket.cc to match class private/public + order (no code change, only move) 2008/05/15 - mention CVS and git on main documentation "how to" list - moved PPP filter logic into its own class diff --git a/src/socket.cc b/src/socket.cc index 3b020eca..ff185ae3 100644 --- a/src/socket.cc +++ b/src/socket.cc @@ -284,21 +284,6 @@ void SocketZero::SendPasswordHash(uint16_t socket, const char *password, Data &r // receive now holds the Password response } - -/////////////////////////////////////// -// SocketZero public API - -void SocketZero::SetRoutingQueue(SocketRoutingQueue &queue) -{ - // replace the current queue pointer - m_queue = &queue; -} - -void SocketZero::UnlinkRoutingQueue() -{ - m_queue = 0; -} - void SocketZero::RawSend(Data &send, int timeout) { Usb::Device *dev = m_queue ? m_queue->GetUsbDevice() : m_dev; @@ -362,6 +347,21 @@ bool SocketZero::SequencePacket(const Data &data) return false; // not a sequence packet } + +/////////////////////////////////////// +// SocketZero public API + +void SocketZero::SetRoutingQueue(SocketRoutingQueue &queue) +{ + // replace the current queue pointer + m_queue = &queue; +} + +void SocketZero::UnlinkRoutingQueue() +{ + m_queue = 0; +} + void SocketZero::Send(Data &send, int timeout) { // force the socket number to 0 -- 2.11.4.GIT