Added socket handler functions for program, compute, and result events.