bind and listen tested
mend
mend
implemented write back to socket