This new function uses the existing functions that parse the OSC packets into the Packet struct to provide an exported function, ParsePacket, which takes a string argument and returns the corresponding Packet struct.
To do this, some of the internal functions which were part of the interface for Server were modified to not be part of the interface so they can be used without a Server object.
This new function uses the existing functions that parse the OSC packets into the Packet struct to provide an exported function,
ParsePacket
, which takes a string argument and returns the corresponding Packet struct.To do this, some of the internal functions which were part of the interface for Server were modified to not be part of the interface so they can be used without a Server object.