Added implementation of client for TCP.
Fixed possible synchronization problem for reservations.