net

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2026 License: CC0-1.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client wraps the gRPC ConnectivityManagerService client.

func NewClient

func NewClient(cc grpc.ClientConnInterface) *Client

NewClient creates a new net client.

func (*Client) AddDefaultNetworkActiveListener

func (c *Client) AddDefaultNetworkActiveListener(ctx context.Context, arg0 int64) error

AddDefaultNetworkActiveListener calls the AddDefaultNetworkActiveListener RPC.

func (*Client) BindProcessToNetwork

func (c *Client) BindProcessToNetwork(ctx context.Context, arg0 int64) (bool, error)

BindProcessToNetwork calls the BindProcessToNetwork RPC.

func (*Client) CreateSocketKeepalive

func (c *Client) CreateSocketKeepalive(ctx context.Context, arg0 int64, arg1 int64, arg2 int64, arg3 int64, arg4 int64, arg5 int64) (int64, error)

CreateSocketKeepalive calls the CreateSocketKeepalive RPC.

func (*Client) GetActiveNetwork

func (c *Client) GetActiveNetwork(ctx context.Context) (int64, error)

GetActiveNetwork calls the GetActiveNetwork RPC.

func (*Client) GetActiveNetworkInfo

func (c *Client) GetActiveNetworkInfo(ctx context.Context) (int64, error)

GetActiveNetworkInfo calls the GetActiveNetworkInfo RPC.

func (*Client) GetAllNetworkInfo

func (c *Client) GetAllNetworkInfo(ctx context.Context) (int64, error)

GetAllNetworkInfo calls the GetAllNetworkInfo RPC.

func (*Client) GetAllNetworks

func (c *Client) GetAllNetworks(ctx context.Context) (int64, error)

GetAllNetworks calls the GetAllNetworks RPC.

func (*Client) GetBackgroundDataSetting

func (c *Client) GetBackgroundDataSetting(ctx context.Context) (bool, error)

GetBackgroundDataSetting calls the GetBackgroundDataSetting RPC.

func (*Client) GetBoundNetworkForProcess

func (c *Client) GetBoundNetworkForProcess(ctx context.Context) (int64, error)

GetBoundNetworkForProcess calls the GetBoundNetworkForProcess RPC.

func (*Client) GetConnectionOwnerUid

func (c *Client) GetConnectionOwnerUid(ctx context.Context, arg0 int32, arg1 int64, arg2 int64) (int32, error)

GetConnectionOwnerUid calls the GetConnectionOwnerUid RPC.

func (*Client) GetDefaultProxy

func (c *Client) GetDefaultProxy(ctx context.Context) (int64, error)

GetDefaultProxy calls the GetDefaultProxy RPC.

func (*Client) GetLinkProperties

func (c *Client) GetLinkProperties(ctx context.Context, arg0 int64) (int64, error)

GetLinkProperties calls the GetLinkProperties RPC.

func (*Client) GetMultipathPreference

func (c *Client) GetMultipathPreference(ctx context.Context, arg0 int64) (int32, error)

GetMultipathPreference calls the GetMultipathPreference RPC.

func (*Client) GetNetworkCapabilities

func (c *Client) GetNetworkCapabilities(ctx context.Context, arg0 int64) (int64, error)

GetNetworkCapabilities calls the GetNetworkCapabilities RPC.

func (*Client) GetNetworkInfo1

func (c *Client) GetNetworkInfo1(ctx context.Context, arg0 int64) (int64, error)

GetNetworkInfo1 calls the GetNetworkInfo1 RPC.

func (*Client) GetNetworkInfo1_1

func (c *Client) GetNetworkInfo1_1(ctx context.Context, arg0 int32) (int64, error)

GetNetworkInfo1_1 calls the GetNetworkInfo1_1 RPC.

func (*Client) GetNetworkPreference

func (c *Client) GetNetworkPreference(ctx context.Context) (int32, error)

GetNetworkPreference calls the GetNetworkPreference RPC.

func (*Client) GetNetworkWatchlistConfigHash

func (c *Client) GetNetworkWatchlistConfigHash(ctx context.Context) (int64, error)

GetNetworkWatchlistConfigHash calls the GetNetworkWatchlistConfigHash RPC.

func (*Client) GetProcessDefaultNetwork

func (c *Client) GetProcessDefaultNetwork(ctx context.Context) (int64, error)

GetProcessDefaultNetwork calls the GetProcessDefaultNetwork RPC.

func (*Client) GetRestrictBackgroundStatus

func (c *Client) GetRestrictBackgroundStatus(ctx context.Context) (int32, error)

GetRestrictBackgroundStatus calls the GetRestrictBackgroundStatus RPC.

func (*Client) IsActiveNetworkMetered

func (c *Client) IsActiveNetworkMetered(ctx context.Context) (bool, error)

IsActiveNetworkMetered calls the IsActiveNetworkMetered RPC.

func (*Client) IsDefaultNetworkActive

func (c *Client) IsDefaultNetworkActive(ctx context.Context) (bool, error)

IsDefaultNetworkActive calls the IsDefaultNetworkActive RPC.

func (*Client) IsNetworkTypeValid

func (c *Client) IsNetworkTypeValid(ctx context.Context, arg0 int32) (bool, error)

IsNetworkTypeValid calls the IsNetworkTypeValid RPC.

func (*Client) RegisterDefaultNetworkCallback

func (c *Client) RegisterDefaultNetworkCallback(ctx context.Context, arg0 int64) error

RegisterDefaultNetworkCallback calls the RegisterDefaultNetworkCallback RPC.

func (*Client) RegisterNetworkCallback2

func (c *Client) RegisterNetworkCallback2(ctx context.Context, arg0 int64, arg1 int64) error

RegisterNetworkCallback2 calls the RegisterNetworkCallback2 RPC.

func (*Client) RegisterNetworkCallback2_1

func (c *Client) RegisterNetworkCallback2_1(ctx context.Context, arg0 int64, arg1 int64) error

RegisterNetworkCallback2_1 calls the RegisterNetworkCallback2_1 RPC.

func (*Client) ReleaseNetworkRequest

func (c *Client) ReleaseNetworkRequest(ctx context.Context, arg0 int64) error

ReleaseNetworkRequest calls the ReleaseNetworkRequest RPC.

func (*Client) RemoveDefaultNetworkActiveListener

func (c *Client) RemoveDefaultNetworkActiveListener(ctx context.Context, arg0 int64) error

RemoveDefaultNetworkActiveListener calls the RemoveDefaultNetworkActiveListener RPC.

func (*Client) ReportBadNetwork

func (c *Client) ReportBadNetwork(ctx context.Context, arg0 int64) error

ReportBadNetwork calls the ReportBadNetwork RPC.

func (*Client) ReportNetworkConnectivity

func (c *Client) ReportNetworkConnectivity(ctx context.Context, arg0 int64, arg1 bool) error

ReportNetworkConnectivity calls the ReportNetworkConnectivity RPC.

func (*Client) RequestBandwidthUpdate

func (c *Client) RequestBandwidthUpdate(ctx context.Context, arg0 int64) (bool, error)

RequestBandwidthUpdate calls the RequestBandwidthUpdate RPC.

func (*Client) RequestNetwork2

func (c *Client) RequestNetwork2(ctx context.Context, arg0 int64, arg1 int64) error

RequestNetwork2 calls the RequestNetwork2 RPC.

func (*Client) RequestNetwork2_1

func (c *Client) RequestNetwork2_1(ctx context.Context, arg0 int64, arg1 int64) error

RequestNetwork2_1 calls the RequestNetwork2_1 RPC.

func (*Client) RequestNetwork3_2

func (c *Client) RequestNetwork3_2(ctx context.Context, arg0 int64, arg1 int64, arg2 int32) error

RequestNetwork3_2 calls the RequestNetwork3_2 RPC.

func (*Client) SetNetworkPreference

func (c *Client) SetNetworkPreference(ctx context.Context, arg0 int32) error

SetNetworkPreference calls the SetNetworkPreference RPC.

func (*Client) SetProcessDefaultNetwork

func (c *Client) SetProcessDefaultNetwork(ctx context.Context, arg0 int64) (bool, error)

SetProcessDefaultNetwork calls the SetProcessDefaultNetwork RPC.

func (*Client) UnregisterNetworkCallback1

func (c *Client) UnregisterNetworkCallback1(ctx context.Context, arg0 int64) error

UnregisterNetworkCallback1 calls the UnregisterNetworkCallback1 RPC.

func (*Client) UnregisterNetworkCallback1_1

func (c *Client) UnregisterNetworkCallback1_1(ctx context.Context, arg0 int64) error

UnregisterNetworkCallback1_1 calls the UnregisterNetworkCallback1_1 RPC.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL