Modified MAXDATASIZE, buffer variables so that I won't need separate ones for UDP and TCP