I'm new to Windows service development, and need to build one in C# that will listen on port
Socket serverSocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.IP);
serverSocket.Bind(new IPEndPoint(IPAddress.Any, 8080));
serverSocket.BeginAccept(null, 0, OnAccept, null);
Since you wish to use port 8080 as listening port, I'm going to assume you are essentially dealing with http traffic. Instead of using raw sockets, you should look into OWIN Self Hosted web server. Alternatively NancyFx can work as well.
OnStop() is called when windows tries to stop the service. You can think of it as your Dispose for service.
OnStart() is similarly your function to do initializations. I'd suggest you look into the really nice library TopShelf to start writing Windows Services.