C# Class Avahi.Utility

Show file Open project: RidgeRun/eval-sdk-imx6-hummingboard

Public Methods

Method Description
AddressToPtr ( IPAddress address ) : IntPtr
Free ( IntPtr ptr ) : void
PtrToAddress ( IntPtr ptr ) : IPAddress
PtrToString ( IntPtr ptr ) : string
PtrToStringFree ( IntPtr ptr ) : string
StringToBytes ( string str ) : byte[]

Private Methods

Method Description
StringToPtr ( string str ) : IntPtr
avahi_address_parse ( IntPtr str, Protocol proto, IntPtr ret ) : IntPtr
avahi_address_snprint ( IntPtr buf, int size, IntPtr address ) : IntPtr
strlen ( IntPtr ptr ) : int

Method Details

AddressToPtr() public static method

public static AddressToPtr ( IPAddress address ) : IntPtr
address System.Net.IPAddress
return System.IntPtr

Free() public static method

public static Free ( IntPtr ptr ) : void
ptr System.IntPtr
return void

PtrToAddress() public static method

public static PtrToAddress ( IntPtr ptr ) : IPAddress
ptr System.IntPtr
return System.Net.IPAddress

PtrToString() public static method

public static PtrToString ( IntPtr ptr ) : string
ptr System.IntPtr
return string

PtrToStringFree() public static method

public static PtrToStringFree ( IntPtr ptr ) : string
ptr System.IntPtr
return string

StringToBytes() public static method

public static StringToBytes ( string str ) : byte[]
str string
return byte[]