This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
apt-get install cmake | |
git clone http://git.gnuradio.org/git/gnuradio.git | |
wget https://pypi.python.org/packages/source/C/Cheetah/Cheetah-2.4.4.tar.gz | |
tar xvf Cheetah-2.4.4.tar.gz | |
cd Cheetah-2.4.4 | |
./setup.py install | |
cd .. | |
wget -o boost_1_50_0.tar.gz -L http://downloads.sourceforge.net/project/boost/boost/1.50.0/boost_1_50_0.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void run() throws Exception { | |
EventLoopGroup udpGroup = new NioEventLoopGroup(); | |
try { | |
Bootstrap b = new Bootstrap(); | |
b.group(udpGroup) | |
.channel(NioDatagramChannel.class) | |
.handler(new ChannelInitializer<DatagramChannel>() { | |
@Override | |
protected void initChannel(DatagramChannel ch) throws Exception { | |
ChannelPipeline p = ch.pipeline(); |