packageactor;importit.ewlab.actor.ActorOuterClass.Actor;importjava.io.IOException;importjava.net.Socket;publicclassClient{publicstaticvoidmain(String[]args)throwsIOException{Sockets=newSocket("localhost",9999);Actoractor=Actor.newBuilder().setName("Christian").setSurname("Bale").setSex(Actor.Sex.MALE).addMovie(Actor.Movie.newBuilder().setTitle("The Prestige").setYear(2006)).addMovie(Actor.Movie.newBuilder().setTitle("The Dark Knight").setYear(2008)).build();actor.writeTo(s.getOutputStream());s.close();}}