Ideas for Clock Synchronization at Receiver in Spread Spectrum Implementation on Gnuradio

Hi friends,

I am working on implementing DSSS on gnuradio. I have a question
regarding
the clock sync techniques for a receiver.
Can someone suggest me something that can be useful to me. I have an
idea
(its still an idea…not concrete yet ).

I am thinking of using a barker code sequence initially to synchronize
the
clock instead of the gold code sequence that I use to spread the actual
data. The barker code can initially work as the training sequence to get
a
lock on the clock. I would like to know how one can implement a
synchronizing technique in gnuradio. I looked at the M&M algorithm used
in
the code gr_clock_recovery_mm_XX.c but found it rather difficult to
understand. If possible will someone throw some light over it.

Thanks
Ali