C# Class UdpSender.Program

显示文件 Open project: ProfessionalCSharp/ProfessionalCSharp6

Public Methods

Method Description
GetIPEndPoint ( int port, string hostName, bool broadcast, string groupAddress, bool ipv6 ) : Task

Private Methods

Method Description
GetValueForKey ( string args, string key ) : string
Main ( string args ) : void
ParseCommandLine ( string args, int &port, string &hostname, bool &broadcast, string &groupAddress, bool &ipv6 ) : bool
Sender ( IPEndPoint endpoint, bool broadcast, string groupAddress ) : System.Threading.Tasks.Task
ShowUsage ( ) : void

Method Details

GetIPEndPoint() public static method

public static GetIPEndPoint ( int port, string hostName, bool broadcast, string groupAddress, bool ipv6 ) : Task
port int
hostName string
broadcast bool
groupAddress string
ipv6 bool
return Task