Function TCP_AcceptSocket(server)

Attempts to accept a connection from a server socket. If successful it will return a client socket id. If it fails it will return -1.