Change size passed to socket function to be a @size_t@. Insert missing