complete send and receive packets