Software Engineering 2016.6.28 Daily

Source: Internet
Author: User

Today, the feedback from the questionnaire clarifies the direction of improvement. As the team leader, I am responsible for the overall project progress management and quality control, the main direction in 10 days is:

1, continuous new version of the demand analysis to clarify the direction of team members

2. Instruct testers to complete high quality test

3, write the main document

Today to complete the learning of some network programming IP packet knowledge, for our platform to expand may have some help.

Linux IP Header Option ipoption implementation (difficult to implement, setsockopt () function does not support the BSD standard ip_option keyword)

Under Windows

Define the IPOPTIONHDR structure body

typedef struct _IPOPTIONHDR
{
unsigned char code;
unsigned char len;
unsigned char ptr;
unsigned long addr[9];
}ipoptionheader;

Then set the socket before the contract is made

if (Recordflag)
{
IP options Each field is initialized with 0
ZeroMemory (&ipoption,sizeof (ipoption));
Set routing options for each ICMP packet
Ipoption.code=ip_record_route;
ipoption.ptr=4;
ipoption.len=39;

Ret=setsockopt (M_socket,ipproto_ip,ip_options, (char*) &ipoption,sizeof (ipoption));
if (ret==socket_error)
{
printf ("setsockopt (ip_options) failed:%d\n", WSAGetLastError ());

}

The ability to complete the routing of packages in the extended options of IP headers is complete.

Software Engineering 2016.6.28 Daily

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.