tryParse static method

SocksUpdPacket? tryParse(
  1. List<int> packetData
)

Implementation

static SocksUpdPacket? tryParse(List<int> packetData) {
  try {
    return SocksUpdPacket.parse(packetData);
  } catch (e) {
    return null;
  }
}