Edited TCP-Handler