Added a clear method to the network buffer