Server and client now both use the same send function. Getting somewhere