Possible to detect new connections?

Is it possible to detect new connections using the Ethernet(2) library?

I'd like to buffer data received from each socket, but when a new client connects (or an existing one disconnects), I need to reset the buffer.

If you mean a server connection, not with the ethernet(2) library unless the client sends something.

You can with the w5100.h, w5200.h and w5500.h functions. I have an example on the playground.
http://playground.arduino.cc/Code/Telnet