added options to set tcp send and recv buffer sizes