Gio.NetworkService.prototype.get_protocol

function get_protocol(): String {
    // Gjs wrapper for g_network_service_get_protocol()
}
  

Gets srv's protocol name (eg, "tcp").

Since 2.22

Returns

srv's protocol name