tcp and udp in one script

a year ago i made a small box with some buttons on it, that wen pushed sent tcp packets to a server.
it has worked grate so far. was simple.

i now need to modify the project to make the client connection as before, how ever when the button is pushed i need to send the same tcp packet to the server and a udp packet to a different ip address.

have been looking around for a few days, i have not come up with a great way to do this.
if i break the client/server connection the button may need to be pressed before the reconnect could happen.

is this logic sound? i have not had time to start on this project yet. just in the planning state.

If you are using a w5100 ethernet shield, you can do that. Start the UDP socket in the setup function and don't stop it. You can use it any time you want.

I don't know about the ENC28J60 tho.