Moved some struct defines from connection.c to connection.h