C ++ network programming volume 1 note: ACE

xiaoxiao2021-03-06  41

ACE_ADDR is the base class for all ACE "Address" classes; if the address information of TCP / IP and UDP / IP is represented by ACE_INET_ADDR, as shown:

Method description

ACE_INET_ADDR (), SET () initializes ACE_Inet_addr by host name, IP address and port number

String_to_addr () converts strings to ACE_INET_ADDR

Addr_to_string () Converts ACE_INET_ADDR to strings

GET_PORT_NUMBER () Return to the port number

Get_host_name () Returns the host name

Use the ACE_INET_ADDR class to avoid the troubles brought by the original Sock_ADDR structure.

The use of this class, see the first few of the series of notes.

to be continued...

转载请注明原文地址:https://www.9cbs.com/read-116335.html

New Post(0)