Python full stack s3 day7 IP address and subnet division
S3 Python full stack day7 IP address configuration
S3 Python full stack day7 virtual Machine network mode
Python ful
Python full stack s3 day7 IP address and subnet division
S3 Python full stack day7 IP address configuration
S3 Python full stack day7 virtual Machine network mode
Python ful
The difference between a network and a distributed cluster system: Each node is a single computer, not a functional device within a variety of computers.IP: Has global uniqueness, as opposed to INTERNET,IP as a logical address.Port: There can be 65,536 ports in a PC, and processes exchange data over ports. When connecting, you need to enter the IP and enter the port information.The computer communicates the
;BeginNetfilename: = ' netcfg2.txt ';Fileappend: =S5+MASKEDIT1.TEXT+S1+MASKEDIT2.TEXT+S2+MASKEDIT3.TEXT+S3+S4;Messagedlg (' This is commend ' +fileappend,mtinformation,[mbok],0);AssignFile (netfile, ' net.txt '); Net.txt files to be placed in the same directory in the applicationReset (Netfile);BeginTryMemo1.lines.text:= ';While does Eof (Netfile) doBeginREADLN (NETFILE,TEMPSTR);MEMO1.LINES.ADD (TEMPSTR);EndFinallyBeginCloseFile (Netfile);EndEndAssign
Converts an integer, such as 1567898765, into the form of an IP address of xxx.xxx.xxx.xxx,Here is the source codeUnion Ipnode{unsigned int addr;struct{unsigned char s4,s3,s2,s1;};};void Printip (unsigned int x){Ipnode A;A.ADDR = x;printf ("%d.%d.%d.%d\n", A.S1,A.S2,A.S3,A.S4);}void Main (){unsigned int ip = 1567898765
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.