Unfortunately we do not have an example which does exactly that with the internal Ethernet functions, but we are going to write one soon. As for the references, you can search forum and libstock and of course the help file of the library itself. You can check the library from HERE
A quote from the help file from the library Ethernet_Internal:
TCP Stack features:
Improved Stack can handle almost all posible TCP States like: closed, Established, Listen, SYN Sent, SYN Received...
In other word, We can open socket, send/received data in packets (as many as We want), and finaly close socket.
User can define size of Tx bufer which is used session handling. Only restriction is that the buffer size must be the power of 2 (1, 2, 4, ... 512, ...).
This can be useful because We can choose the amount of RAM We want to occupy. Of course, smaller Tx bufer means more available
RAM and less communication speed (because packets are smaller).
Multiple sockets are supported, and user can define number of sockets required. If You choose more
sockets, less RAM is available, and communication speed will decrease (because there will be more packets to process).