NetworkShort returns the short network description.
()
| 71 | |
| 72 | // NetworkShort returns the short network description. |
| 73 | func (t NetworkType) NetworkShort() string { |
| 74 | switch t { |
| 75 | case NetworkTypeUDP4, NetworkTypeUDP6: |
| 76 | return udp |
| 77 | case NetworkTypeTCP4, NetworkTypeTCP6: |
| 78 | return tcp |
| 79 | default: |
| 80 | return ErrUnknownType.Error() |
| 81 | } |
| 82 | } |
| 83 | |
| 84 | // IsReliable returns true if the network is reliable. |
| 85 | func (t NetworkType) IsReliable() bool { |