Added structs support to UDP