multiple bugs in ethernet library

By this does not seem to work.

Does not compile? Does not link? Does not send any output to the client?

Come on, now. "does not seem to work" is lacking in meaning and direction.

Pass by reference is probably what you need to do.