Can I use Winsock to make server/client.......?(編號:3055)

How to use Winsock to make server and client?
And the client can control the server side. For example, client side click a button,then server side receive the commands and run it's orders.