code for handling BGP messages, does encoding onto wire