Compare commits

...

45 Commits

Author SHA1 Message Date
cuikaibo 5b4e2d11a9 更新
3 years ago
cuikaibo a147bf36bc 更新
3 years ago
cuikaibo f732639c35 更新
3 years ago
cuikaibo 80a721ad9e 更新
3 years ago
cuikaibo 544dd93aee Merge branch 'master' of https://bdgit.educoder.net/pbnjik389/shijianer
3 years ago
cuikaibo a20f793287 更新
3 years ago
cuikaibo 9d726b0518 更新
3 years ago
pbnjik389 43ce40c509 Update README.md
3 years ago
cuikaibo 05101b87bf 更新
3 years ago
cuikaibo 2726cb671a 更新
3 years ago
cuikaibo 815fc2791f 更新
3 years ago
cuikaibo 44726d17af 更新
3 years ago
cuikaibo a1a3ebe509 更新
3 years ago
cuikaibo bec7447df9 6.20
3 years ago
cuikaibo c72ba7bd52 6.20
3 years ago
cuikaibo b901b49bf9 6.20
3 years ago
cuikaibo 7e294c1088 6.20更新
3 years ago
cuikaibo e59c2cc713 6.20
3 years ago
cuikaibo 78aa68597e 6.20
3 years ago
cuikaibo 38e5b09cae 6.13
3 years ago
cuikaibo e7c6d5b24c 更新
3 years ago
cuikaibo a6b4bf25e5 更新
3 years ago
cuikaibo f7216d3f85 6.7更新
3 years ago
cuikaibo ed6cc82973 更新
3 years ago
cuikaibo 31bde675ff Merge branch 'master' of https://bdgit.educoder.net/pbnjik389/shijianer
3 years ago
cuikaibo 36b228064c 6.7更新汇报ppt
3 years ago
pbnjik389 444e48c413 Update README.md
3 years ago
cuikaibo 0edc7821bd 4.18更新
3 years ago
cuikaibo 8b678e900f 4.18更新
3 years ago
cuikaibo20 0b717c28df 更新model
3 years ago
cuikaibo20 f15fc6f97d Merge branch 'master' of https://bdgit.educoder.net/pbnjik389/shijianer
3 years ago
cuikaibo20 7c840f737d 更新
3 years ago
pbnjik389 3d5c2043fb Update README.md
3 years ago
pbnjik389 b02cc5c18d Update README.md
3 years ago
cuikaibo20 db42981e58 更新
3 years ago
cuikaibo20 682639d2f3 更新
3 years ago
cuikaibo20 9bcc0ce8eb Merge branch 'master' of https://bdgit.educoder.net/pbnjik389/shijianer
3 years ago
cuikaibo20 943c27bea9 更新
3 years ago
子虚乌有 b0f58f34aa Merge remote-tracking branch 'remotes/origin/zhengwanpeng'
3 years ago
cuikaibo20 5a8cfd9609 更新
3 years ago
cuikaibo20 9e8705d782 更新
3 years ago
cuikaibo20 d7eec464e6 更新
3 years ago
cuikaibo20 0838549b63 更新
3 years ago
cuikaibo20 f5e4d4dff9 更改
3 years ago
cuikaibo20 40cac458ec 更改
3 years ago

@ -1,2 +1,2 @@
# shijianer
软件需求设计文档位于doc中设计模型位于model中实现代码位于src中
“基于FPGA的网络测试仪”和“小米便签维护”共用一个实践项目已关联相关作业。

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 644 KiB

Binary file not shown.

Binary file not shown.

@ -0,0 +1 @@
测试用例。

Binary file not shown.

@ -1,141 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="net.micode.notes"
android:versionCode="1"
android:versionName="0.1" >
<uses-sdk android:minSdkVersion="16" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.MANAGE_ACCOUNTS" />
<uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.USE_CREDENTIALS" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<application
android:icon="@drawable/icon_app"
android:requestLegacyExternalStorage="true"
android:label="@string/app_name" >
<activity
android:name=".ui.NotesListActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:label="@string/app_name"
android:launchMode="singleTop"
android:theme="@style/Theme.AppCompat.Light.DarkActionBar"
android:uiOptions="splitActionBarWhenNarrow"
android:windowSoftInputMode="adjustPan" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".ui.NoteEditActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:launchMode="singleTop"
android:theme="@style/Theme.AppCompat.Light.DarkActionBar" >
<intent-filter>
<action android:name="android.intent.action.INSERT_OR_EDIT" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="vnd.android.cursor.item/text_note" />
<data android:mimeType="vnd.android.cursor.item/call_note" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEARCH" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<meta-data
android:name="android.app.searchable"
android:resource="@xml/searchable" />
</activity>
<activity
android:name=".ui.AlarmAlertActivity"
android:label="@string/app_name"
android:launchMode="singleInstance"
android:theme="@android:style/Theme.Holo.Wallpaper.NoTitleBar" />
<activity
android:name=".ui.NotesPreferenceActivity"
android:label="@string/preferences_title"
android:launchMode="singleTop"
android:theme="@android:style/Theme.Holo.Light" />
<meta-data
android:name="android.app.default_searchable"
android:value=".ui.NoteEditActivity" />
<provider
android:name=".data.NotesProvider"
android:authorities="micode_notes"
android:multiprocess="true" />
<receiver
android:name=".widget.NoteWidgetProvider_2x"
android:label="@string/app_widget2x2" >
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
<action android:name="android.appwidget.action.APPWIDGET_DELETED" />
<action android:name="android.intent.action.PRIVACY_MODE_CHANGED" />
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/widget_2x_info" />
</receiver>
<receiver
android:name=".widget.NoteWidgetProvider_4x"
android:label="@string/app_widget4x4" >
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
<action android:name="android.appwidget.action.APPWIDGET_DELETED" />
<action android:name="android.intent.action.PRIVACY_MODE_CHANGED" />
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/widget_4x_info" />
</receiver>
<receiver android:name=".ui.AlarmInitReceiver" >
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>
<receiver
android:name=".ui.AlarmReceiver"
android:process=":remote" />
<service
android:name=".gtask.remote.GTaskSyncService"
android:exported="false" />
<provider
android:authorities="com.example.cameraalbumtest.fileprovider"
android:name="androidx.core.content.FileProvider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_paths"
/>
</provider>
</application>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WRITE_SETTINGS"
tools:ignore="ProtectedPermissions" />
</manifest>

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.7 KiB

@ -1,57 +0,0 @@
apply plugin: 'com.android.application'
android {
compileSdkVersion 30
buildToolsVersion "31.0.0"
defaultConfig {
applicationId "net.micode.notes"
minSdkVersion 16
//noinspection ExpiredTargetSdkVersion
targetSdkVersion 23
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
sourceSets {
main {
jniLibs.srcDirs = ['libs']
}
}
useLibrary 'org.apache.http.legacy'
buildFeatures {
viewBinding true
}
}
dependencies {
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:2.0.4'
implementation files('libs\\Msc.jar')
implementation "androidx.drawerlayout:drawerlayout:1.1.1"
implementation 'com.android.support:design:29.1.1'
implementation 'com.zhihu.android:matisse:0.5.2-beta4'
implementation 'com.github.bumptech.glide:glide:4.8.0'
implementation files('libs\\mysql-connector-java-5.1.46-bin.jar')
annotationProcessor 'com.github.bumptech.glide:compiler:4.8.0'
implementation 'com.simple:spiderman:1.0.2'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}
sonarqube {
properties {
property "sonar.sourceEncoding", "GBK"
property "sonar.projectKey", "projectkey" //projectkey
property "sonar.projectName", project.name //projectname
property "sonar.sources", "src/main/java" //
property "sonar.projectVersion", project.version //
property "sonar.binaries", "build/intermediates/classes"
}
}

@ -0,0 +1,32 @@
# Prerequisites
*.d
# Compiled Object files
*.slo
*.lo
*.o
*.obj
# Precompiled Headers
*.gch
*.pch
# Compiled Dynamic libraries
*.so
*.dylib
*.dll
# Fortran module files
*.mod
*.smod
# Compiled Static libraries
*.lai
*.la
*.a
*.lib
# Executables
*.exe
*.out
*.app

Binary file not shown.

@ -0,0 +1,674 @@
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<http://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.

@ -0,0 +1,18 @@
# ANT (Agile Network Tester)
Agile Network Tester is a FPGA-CPUs based Network Tester based on [FAST](www.fastswitch.org). We write this to help people test the performance of network prototypes,
when they don't have commercial testers at hand.
the ANT v1 has been up online since 2018.11.7, welcome to use!
Tips: ANT is aimming to be deployed on both Xilinx and Altera FPGAs, but we set Xilinx Zynq 7000 as the platform in ANT v1.
### How to use
Firstly, you need to clone `/App/BOOT.bin` and `/App/ant` into the directory of `/mnt` of the ARM core on Zynq. Then, reboot the OS, insmod `openbox-s4.ko`, turn on the network port with `ifconfig xxx up` and run `./ant` for hint. Then you may know how to use ANT (quite simple).
After finish the test, the testing report will be seen on both the `terminal` and the file named `latency_out`.
Remember that ANT now is only used for **throughput/jitter/latency/drop-rate** test, We are working on **compiler back-end design to enable complex network function evaluation**. What's more, if you and your company have some interesting demands, please leave a comment in the `issues` and we are willing to support them in the next version of ANT to help as many people as we can.
Let's see what ANT can do :)
Tip: If you have any problem, please contact me nudtyxr@hotmail.com

@ -0,0 +1,10 @@
FAST是由国防科技大学与湖南新实网络联合创办的一个开源项目。该架构所有平台相关软件、开发环境、示例应用程序、调测试程序
由湖南新实网络科技有限公司提供全程技术服务与支持。
代码编写及技术支持人员列表:
徐东来XuDongLai@xperis.com.cn
张彦龙ZhangYanLong@xperis.com.cn
肖智鹏XiaoZhiPeng@xperis.com.cn
熊彩莉XiongCaiLi@xperis.com.cn
王耀祥WangYaoXiang@xperis.com.cn
黄含斌HuangHanBin@xperis.com.cn

@ -0,0 +1,34 @@
2018/08/20
版本号fast-0.3.0
修改:
1.平台代码结构进行了整理将库、应用、工具分别清理到对应的lib、app、tools目录下
2.平台默认支持OpenBox-S4平台
3.重新整理了硬件寄存器定义UM、GME对端口寄存器暂只支持接收发送的个数与字节。
2018/09/18
这是基于FAST 2.0实现的软件版本于2018/09/14进行了基本测试功能基本正常。
1.基于FAST2.0修改
2.支持环形控制通路
3.所有寄存器读写修改为64位模式
4.对库、应用、工具等进行了重新分类
5.在libofp的flow_mod_add中解决了一个逻辑错误添加流表时会死循环
2018/09/18
1.解决read_port_status函数错误打开了多个文件没有关闭。
2.调整了port_status的输出格式若link为DOWN则不再读取speed和duplex
3.修改了版本读取工具将所有库、应用、工具的版本定义放在了fast_version.h中。
4.修复了libofp中软件查表转发时端口号出现的错误流表使用的是物理端口执行转发时端口号要加1。
2018/09/30
1.在项目README文件中添加了关于本项目目录结构、命令工具的说明。
2.软件版本号升级为0.4.1
2018/10/13
1.在工具目录下新开发了一个UA转发测试应用支持对UA收发报文进行测试与验证。
2018/10/15
1.寄存器读写改为64位操作后其对规则读写时会出现两个32位错位此版本修正了此BUG
2018/10/16
1.修复了规则库中优先级与有效位写入错位的问题
2.优化了规则管理库,将读取硬件流表规则后的优先级和有效位单独打印输出,更方便分析与调试

File diff suppressed because it is too large Load Diff

@ -0,0 +1,347 @@
#! /bin/sh
# Wrapper for compilers which do not understand '-c -o'.
scriptversion=2012-10-14.11; # UTC
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
# Written by Tom Tromey <tromey@cygnus.com>.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
# This file is maintained in Automake, please report
# bugs to <bug-automake@gnu.org> or send patches to
# <automake-patches@gnu.org>.
nl='
'
# We need space, tab and new line, in precisely that order. Quoting is
# there to prevent tools from complaining about whitespace usage.
IFS=" "" $nl"
file_conv=
# func_file_conv build_file lazy
# Convert a $build file to $host form and store it in $file
# Currently only supports Windows hosts. If the determined conversion
# type is listed in (the comma separated) LAZY, no conversion will
# take place.
func_file_conv ()
{
file=$1
case $file in
/ | /[!/]*) # absolute file, and not a UNC file
if test -z "$file_conv"; then
# lazily determine how to convert abs files
case `uname -s` in
MINGW*)
file_conv=mingw
;;
CYGWIN*)
file_conv=cygwin
;;
*)
file_conv=wine
;;
esac
fi
case $file_conv/,$2, in
*,$file_conv,*)
;;
mingw/*)
file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
;;
cygwin/*)
file=`cygpath -m "$file" || echo "$file"`
;;
wine/*)
file=`winepath -w "$file" || echo "$file"`
;;
esac
;;
esac
}
# func_cl_dashL linkdir
# Make cl look for libraries in LINKDIR
func_cl_dashL ()
{
func_file_conv "$1"
if test -z "$lib_path"; then
lib_path=$file
else
lib_path="$lib_path;$file"
fi
linker_opts="$linker_opts -LIBPATH:$file"
}
# func_cl_dashl library
# Do a library search-path lookup for cl
func_cl_dashl ()
{
lib=$1
found=no
save_IFS=$IFS
IFS=';'
for dir in $lib_path $LIB
do
IFS=$save_IFS
if $shared && test -f "$dir/$lib.dll.lib"; then
found=yes
lib=$dir/$lib.dll.lib
break
fi
if test -f "$dir/$lib.lib"; then
found=yes
lib=$dir/$lib.lib
break
fi
if test -f "$dir/lib$lib.a"; then
found=yes
lib=$dir/lib$lib.a
break
fi
done
IFS=$save_IFS
if test "$found" != yes; then
lib=$lib.lib
fi
}
# func_cl_wrapper cl arg...
# Adjust compile command to suit cl
func_cl_wrapper ()
{
# Assume a capable shell
lib_path=
shared=:
linker_opts=
for arg
do
if test -n "$eat"; then
eat=
else
case $1 in
-o)
# configure might choose to run compile as 'compile cc -o foo foo.c'.
eat=1
case $2 in
*.o | *.[oO][bB][jJ])
func_file_conv "$2"
set x "$@" -Fo"$file"
shift
;;
*)
func_file_conv "$2"
set x "$@" -Fe"$file"
shift
;;
esac
;;
-I)
eat=1
func_file_conv "$2" mingw
set x "$@" -I"$file"
shift
;;
-I*)
func_file_conv "${1#-I}" mingw
set x "$@" -I"$file"
shift
;;
-l)
eat=1
func_cl_dashl "$2"
set x "$@" "$lib"
shift
;;
-l*)
func_cl_dashl "${1#-l}"
set x "$@" "$lib"
shift
;;
-L)
eat=1
func_cl_dashL "$2"
;;
-L*)
func_cl_dashL "${1#-L}"
;;
-static)
shared=false
;;
-Wl,*)
arg=${1#-Wl,}
save_ifs="$IFS"; IFS=','
for flag in $arg; do
IFS="$save_ifs"
linker_opts="$linker_opts $flag"
done
IFS="$save_ifs"
;;
-Xlinker)
eat=1
linker_opts="$linker_opts $2"
;;
-*)
set x "$@" "$1"
shift
;;
*.cc | *.CC | *.cxx | *.CXX | *.[cC]++)
func_file_conv "$1"
set x "$@" -Tp"$file"
shift
;;
*.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO])
func_file_conv "$1" mingw
set x "$@" "$file"
shift
;;
*)
set x "$@" "$1"
shift
;;
esac
fi
shift
done
if test -n "$linker_opts"; then
linker_opts="-link$linker_opts"
fi
exec "$@" $linker_opts
exit 1
}
eat=
case $1 in
'')
echo "$0: No command. Try '$0 --help' for more information." 1>&2
exit 1;
;;
-h | --h*)
cat <<\EOF
Usage: compile [--help] [--version] PROGRAM [ARGS]
Wrapper for compilers which do not understand '-c -o'.
Remove '-o dest.o' from ARGS, run PROGRAM with the remaining
arguments, and rename the output as expected.
If you are trying to build a whole package this is not the
right script to run: please start by reading the file 'INSTALL'.
Report bugs to <bug-automake@gnu.org>.
EOF
exit $?
;;
-v | --v*)
echo "compile $scriptversion"
exit $?
;;
cl | *[/\\]cl | cl.exe | *[/\\]cl.exe )
func_cl_wrapper "$@" # Doesn't return...
;;
esac
ofile=
cfile=
for arg
do
if test -n "$eat"; then
eat=
else
case $1 in
-o)
# configure might choose to run compile as 'compile cc -o foo foo.c'.
# So we strip '-o arg' only if arg is an object.
eat=1
case $2 in
*.o | *.obj)
ofile=$2
;;
*)
set x "$@" -o "$2"
shift
;;
esac
;;
*.c)
cfile=$1
set x "$@" "$1"
shift
;;
*)
set x "$@" "$1"
shift
;;
esac
fi
shift
done
if test -z "$ofile" || test -z "$cfile"; then
# If no '-o' option was seen then we might have been invoked from a
# pattern rule where we don't need one. That is ok -- this is a
# normal compilation that the losing compiler can handle. If no
# '.c' file was seen then we are probably linking. That is also
# ok.
exec "$@"
fi
# Name of file we expect compiler to create.
cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'`
# Create the lock directory.
# Note: use '[/\\:.-]' here to ensure that we don't use the same name
# that we are using for the .o file. Also, base the name on the expected
# object file name, since that is what matters with a parallel build.
lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d
while true; do
if mkdir "$lockdir" >/dev/null 2>&1; then
break
fi
sleep 1
done
# FIXME: race condition here if user kills between mkdir and trap.
trap "rmdir '$lockdir'; exit 1" 1 2 15
# Run the compile.
"$@"
ret=$?
if test -f "$cofile"; then
test "$cofile" = "$ofile" || mv "$cofile" "$ofile"
elif test -f "${cofile}bj"; then
test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile"
fi
rmdir "$lockdir"
exit $ret
# Local Variables:
# mode: shell-script
# sh-indentation: 2
# eval: (add-hook 'write-file-hooks 'time-stamp)
# time-stamp-start: "scriptversion="
# time-stamp-format: "%:y-%02m-%02d.%02H"
# time-stamp-time-zone: "UTC"
# time-stamp-end: "; # UTC"
# End:

File diff suppressed because it is too large Load Diff

@ -0,0 +1,63 @@
/* config.h. Generated from config.h.in by configure. */
/* config.h.in. Generated from configure.ac by autoheader. */
/* Define to 1 if you have the <dlfcn.h> header file. */
#define HAVE_DLFCN_H 1
/* Define to 1 if you have the <inttypes.h> header file. */
#define HAVE_INTTYPES_H 1
/* Define to 1 if you have the <memory.h> header file. */
#define HAVE_MEMORY_H 1
/* Define to 1 if you have the <stdint.h> header file. */
#define HAVE_STDINT_H 1
/* Define to 1 if you have the <stdlib.h> header file. */
#define HAVE_STDLIB_H 1
/* Define to 1 if you have the <strings.h> header file. */
#define HAVE_STRINGS_H 1
/* Define to 1 if you have the <string.h> header file. */
#define HAVE_STRING_H 1
/* Define to 1 if you have the <sys/stat.h> header file. */
#define HAVE_SYS_STAT_H 1
/* Define to 1 if you have the <sys/types.h> header file. */
#define HAVE_SYS_TYPES_H 1
/* Define to 1 if you have the <unistd.h> header file. */
#define HAVE_UNISTD_H 1
/* Define to the sub-directory in which libtool stores uninstalled libraries.
*/
#define LT_OBJDIR ".libs/"
/* Name of package */
#define PACKAGE "fast-ant"
/* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT ""
/* Define to the full name of this package. */
#define PACKAGE_NAME "fast-ant"
/* Define to the full name and version of this package. */
#define PACKAGE_STRING "fast-ant 0.4.3"
/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "fast-ant"
/* Define to the home page for this package. */
#define PACKAGE_URL ""
/* Define to the version of this package. */
#define PACKAGE_VERSION "0.4.3"
/* Define to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1
/* Version number of package */
#define VERSION "0.4.3"

@ -0,0 +1,62 @@
/* config.h.in. Generated from configure.ac by autoheader. */
/* Define to 1 if you have the <dlfcn.h> header file. */
#undef HAVE_DLFCN_H
/* Define to 1 if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H
/* Define to 1 if you have the <memory.h> header file. */
#undef HAVE_MEMORY_H
/* Define to 1 if you have the <stdint.h> header file. */
#undef HAVE_STDINT_H
/* Define to 1 if you have the <stdlib.h> header file. */
#undef HAVE_STDLIB_H
/* Define to 1 if you have the <strings.h> header file. */
#undef HAVE_STRINGS_H
/* Define to 1 if you have the <string.h> header file. */
#undef HAVE_STRING_H
/* Define to 1 if you have the <sys/stat.h> header file. */
#undef HAVE_SYS_STAT_H
/* Define to 1 if you have the <sys/types.h> header file. */
#undef HAVE_SYS_TYPES_H
/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
/* Define to the sub-directory in which libtool stores uninstalled libraries.
*/
#undef LT_OBJDIR
/* Name of package */
#undef PACKAGE
/* Define to the address where bug reports for this package should be sent. */
#undef PACKAGE_BUGREPORT
/* Define to the full name of this package. */
#undef PACKAGE_NAME
/* Define to the full name and version of this package. */
#undef PACKAGE_STRING
/* Define to the one symbol short name of this package. */
#undef PACKAGE_TARNAME
/* Define to the home page for this package. */
#undef PACKAGE_URL
/* Define to the version of this package. */
#undef PACKAGE_VERSION
/* Define to 1 if you have the ANSI C header files. */
#undef STDC_HEADERS
/* Version number of package */
#undef VERSION

@ -0,0 +1,62 @@
/* config.h.in. Generated from configure.ac by autoheader. */
/* Define to 1 if you have the <dlfcn.h> header file. */
#undef HAVE_DLFCN_H
/* Define to 1 if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H
/* Define to 1 if you have the <memory.h> header file. */
#undef HAVE_MEMORY_H
/* Define to 1 if you have the <stdint.h> header file. */
#undef HAVE_STDINT_H
/* Define to 1 if you have the <stdlib.h> header file. */
#undef HAVE_STDLIB_H
/* Define to 1 if you have the <strings.h> header file. */
#undef HAVE_STRINGS_H
/* Define to 1 if you have the <string.h> header file. */
#undef HAVE_STRING_H
/* Define to 1 if you have the <sys/stat.h> header file. */
#undef HAVE_SYS_STAT_H
/* Define to 1 if you have the <sys/types.h> header file. */
#undef HAVE_SYS_TYPES_H
/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
/* Define to the sub-directory in which libtool stores uninstalled libraries.
*/
#undef LT_OBJDIR
/* Name of package */
#undef PACKAGE
/* Define to the address where bug reports for this package should be sent. */
#undef PACKAGE_BUGREPORT
/* Define to the full name of this package. */
#undef PACKAGE_NAME
/* Define to the full name and version of this package. */
#undef PACKAGE_STRING
/* Define to the one symbol short name of this package. */
#undef PACKAGE_TARNAME
/* Define to the home page for this package. */
#undef PACKAGE_URL
/* Define to the version of this package. */
#undef PACKAGE_VERSION
/* Define to 1 if you have the ANSI C header files. */
#undef STDC_HEADERS
/* Version number of package */
#undef VERSION

@ -0,0 +1,617 @@
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by fast-ant configure 0.4.3, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --host=arm-xilinx-linux-gnueabi
## --------- ##
## Platform. ##
## --------- ##
hostname = localhost.localdomain
uname -m = x86_64
uname -r = 3.10.0-862.9.1.el7.x86_64
uname -s = Linux
uname -v = #1 SMP Mon Jul 16 16:29:36 UTC 2018
/usr/bin/uname -p = x86_64
/bin/uname -X = unknown
/bin/arch = x86_64
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/local/bin
PATH: /usr/local/sbin
PATH: /usr/bin
PATH: /usr/sbin
PATH: /bin
PATH: /sbin
PATH: /home/dwinters/.local/bin
PATH: /home/dwinters/bin
PATH: /root/CodeSourcery/Sourcery_CodeBench_Lite_for_Xilinx_GNU_Linux/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2159: checking for a BSD-compatible install
configure:2227: result: /usr/bin/install -c
configure:2238: checking whether build environment is sane
configure:2293: result: yes
configure:2352: checking for arm-xilinx-linux-gnueabi-strip
configure:2368: found /root/CodeSourcery/Sourcery_CodeBench_Lite_for_Xilinx_GNU_Linux/bin/arm-xilinx-linux-gnueabi-strip
configure:2379: result: arm-xilinx-linux-gnueabi-strip
configure:2444: checking for a thread-safe mkdir -p
configure:2483: result: /usr/bin/mkdir -p
configure:2490: checking for gawk
configure:2506: found /usr/bin/gawk
configure:2517: result: gawk
configure:2528: checking whether make sets $(MAKE)
configure:2550: result: yes
configure:2579: checking whether make supports nested variables
configure:2596: result: yes
configure:2692: checking whether make supports nested variables
configure:2709: result: yes
configure:2729: checking for arm-xilinx-linux-gnueabi-gcc
configure:2745: found /root/CodeSourcery/Sourcery_CodeBench_Lite_for_Xilinx_GNU_Linux/bin/arm-xilinx-linux-gnueabi-gcc
configure:2756: result: arm-xilinx-linux-gnueabi-gcc
configure:3025: checking for C compiler version
configure:3034: arm-xilinx-linux-gnueabi-gcc --version >&5
arm-xilinx-linux-gnueabi-gcc (Sourcery CodeBench Lite 2011.09-50) 4.6.1
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:3045: $? = 0
configure:3034: arm-xilinx-linux-gnueabi-gcc -v >&5
Using built-in specs.
COLLECT_GCC=arm-xilinx-linux-gnueabi-gcc
COLLECT_LTO_WRAPPER=/root/CodeSourcery/Sourcery_CodeBench_Lite_for_Xilinx_GNU_Linux/bin/../libexec/gcc/arm-xilinx-linux-gnueabi/4.6.1/lto-wrapper
Target: arm-xilinx-linux-gnueabi
Configured with: /scratch/janisjo/2011.09-xilinx-linux/src/gcc-4.6-2011.09/configure --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=arm-xilinx-linux-gnueabi --enable-threads --disable-libmudflap --disable-libssp --disable-libstdcxx-pch --enable-extra-sgxxlite-multilibs --with-arch=armv5te --with-cpu=cortex-a9 --with-float=softfp --with-fpu=neon-fp16 --disable-multilib --with-gnu-as --with-gnu-ld --with-specs='%{save-temps: -fverbose-asm} %{funwind-tables|fno-unwind-tables|mabi=*|ffreestanding|nostdlib:;:-funwind-tables} -D__CS_SOURCERYGXX_MAJ__=2011 -D__CS_SOURCERYGXX_MIN__=9 -D__CS_SOURCERYGXX_REV__=50 %{O2:%{!fno-remove-local-statics: -fremove-local-statics}} %{O*:%{O|O0|O1|O2|Os:;:%{!fno-remove-local-statics: -fremove-local-statics}}}' --enable-languages=c,c++ --enable-shared --enable-lto --enable-symvers=gnu --enable-__cxa_atexit --with-pkgversion='Sourcery CodeBench Lite 2011.09-50' --with-bugurl=https://support.codesourcery.com/GNUToolchain/ --disable-nls --prefix=/opt/codesourcery --with-sysroot=/opt/codesourcery/arm-xilinx-linux-gnueabi/libc --with-build-sysroot=/scratch/janisjo/2011.09-xilinx-linux/install/arm-xilinx-linux-gnueabi/libc --with-gmp=/scratch/janisjo/2011.09-xilinx-linux/obj/host-libs-2011.09-50-arm-xilinx-linux-gnueabi-i686-pc-linux-gnu/usr --with-mpfr=/scratch/janisjo/2011.09-xilinx-linux/obj/host-libs-2011.09-50-arm-xilinx-linux-gnueabi-i686-pc-linux-gnu/usr --with-mpc=/scratch/janisjo/2011.09-xilinx-linux/obj/host-libs-2011.09-50-arm-xilinx-linux-gnueabi-i686-pc-linux-gnu/usr --with-ppl=/scratch/janisjo/2011.09-xilinx-linux/obj/host-libs-2011.09-50-arm-xilinx-linux-gnueabi-i686-pc-linux-gnu/usr --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' --with-cloog=/scratch/janisjo/2011.09-xilinx-linux/obj/host-libs-2011.09-50-arm-xilinx-linux-gnueabi-i686-pc-linux-gnu/usr --with-libelf=/scratch/janisjo/2011.09-xilinx-linux/obj/host-libs-2011.09-50-arm-xilinx-linux-gnueabi-i686-pc-linux-gnu/usr --disable-libgomp --enable-poison-system-directories --with-build-time-tools=/scratch/janisjo/2011.09-xilinx-linux/install/arm-xilinx-linux-gnueabi/bin --with-build-time-tools=/scratch/janisjo/2011.09-xilinx-linux/install/arm-xilinx-linux-gnueabi/bin
Thread model: posix
gcc version 4.6.1 (Sourcery CodeBench Lite 2011.09-50)
configure:3045: $? = 0
configure:3034: arm-xilinx-linux-gnueabi-gcc -V >&5
arm-xilinx-linux-gnueabi-gcc: error: unrecognized option '-V'
arm-xilinx-linux-gnueabi-gcc: fatal error: no input files
compilation terminated.
configure:3045: $? = 1
configure:3034: arm-xilinx-linux-gnueabi-gcc -qversion >&5
arm-xilinx-linux-gnueabi-gcc: error: unrecognized option '-qversion'
arm-xilinx-linux-gnueabi-gcc: fatal error: no input files
compilation terminated.
configure:3045: $? = 1
configure:3065: checking whether the C compiler works
configure:3087: arm-xilinx-linux-gnueabi-gcc conftest.c >&5
configure:3091: $? = 0
configure:3139: result: yes
configure:3142: checking for C compiler default output file name
configure:3144: result: a.out
configure:3150: checking for suffix of executables
configure:3157: arm-xilinx-linux-gnueabi-gcc -o conftest conftest.c >&5
configure:3161: $? = 0
configure:3183: result:
configure:3205: checking whether we are cross compiling
configure:3213: arm-xilinx-linux-gnueabi-gcc -o conftest conftest.c >&5
configure:3217: $? = 0
configure:3224: ./conftest
./configure: line 3226: ./conftest: cannot execute binary file
configure:3228: $? = 126
configure:3243: result: yes
configure:3248: checking for suffix of object files
configure:3270: arm-xilinx-linux-gnueabi-gcc -c conftest.c >&5
configure:3274: $? = 0
configure:3295: result: o
configure:3299: checking whether we are using the GNU C compiler
configure:3318: arm-xilinx-linux-gnueabi-gcc -c conftest.c >&5
configure:3318: $? = 0
configure:3327: result: yes
configure:3336: checking whether arm-xilinx-linux-gnueabi-gcc accepts -g
configure:3356: arm-xilinx-linux-gnueabi-gcc -c -g conftest.c >&5
configure:3356: $? = 0
configure:3397: result: yes
configure:3414: checking for arm-xilinx-linux-gnueabi-gcc option to accept ISO C89
configure:3477: arm-xilinx-linux-gnueabi-gcc -c -g -O2 conftest.c >&5
configure:3477: $? = 0
configure:3490: result: none needed
configure:3521: checking for style of include used by make
configure:3549: result: GNU
configure:3575: checking dependency style of arm-xilinx-linux-gnueabi-gcc
configure:3686: result: gcc3
configure:3738: checking build system type
configure:3752: result: x86_64-unknown-linux-gnu
configure:3772: checking host system type
configure:3785: result: arm-xilinx-linux-gnueabi
configure:3826: checking how to print strings
configure:3853: result: printf
configure:3874: checking for a sed that does not truncate output
configure:3938: result: /usr/bin/sed
configure:3956: checking for grep that handles long lines and -e
configure:4014: result: /usr/bin/grep
configure:4019: checking for egrep
configure:4081: result: /usr/bin/grep -E
configure:4086: checking for fgrep
configure:4148: result: /usr/bin/grep -F
configure:4183: checking for ld used by arm-xilinx-linux-gnueabi-gcc
configure:4250: result: /root/CodeSourcery/Sourcery_CodeBench_Lite_for_Xilinx_GNU_Linux/arm-xilinx-linux-gnueabi/bin/ld
configure:4257: checking if the linker (/root/CodeSourcery/Sourcery_CodeBench_Lite_for_Xilinx_GNU_Linux/arm-xilinx-linux-gnueabi/bin/ld) is GNU ld
configure:4272: result: yes
configure:4284: checking for BSD- or MS-compatible name lister (nm)
configure:4333: result: /root/CodeSourcery/Sourcery_CodeBench_Lite_for_Xilinx_GNU_Linux/bin/arm-xilinx-linux-gnueabi-nm -B
configure:4463: checking the name lister (/root/CodeSourcery/Sourcery_CodeBench_Lite_for_Xilinx_GNU_Linux/bin/arm-xilinx-linux-gnueabi-nm -B) interface
configure:4470: arm-xilinx-linux-gnueabi-gcc -c -g -O2 conftest.c >&5
configure:4473: /root/CodeSourcery/Sourcery_CodeBench_Lite_for_Xilinx_GNU_Linux/bin/arm-xilinx-linux-gnueabi-nm -B "conftest.o"
configure:4476: output
00000000 B some_variable
configure:4483: result: BSD nm
configure:4486: checking whether ln -s works
configure:4490: result: yes
configure:4498: checking the maximum length of command line arguments
configure:4628: result: 1572864
configure:4645: checking whether the shell understands some XSI constructs
configure:4655: result: yes
configure:4659: checking whether the shell understands "+="
configure:4665: result: yes
configure:4700: checking how to convert x86_64-unknown-linux-gnu file names to arm-xilinx-linux-gnueabi format
configure:4740: result: func_convert_file_noop
configure:4747: checking how to convert x86_64-unknown-linux-gnu file names to toolchain format
configure:4767: result: func_convert_file_noop
configure:4774: checking for /root/CodeSourcery/Sourcery_CodeBench_Lite_for_Xilinx_GNU_Linux/arm-xilinx-linux-gnueabi/bin/ld option to reload object files
configure:4781: result: -r
configure:4815: checking for arm-xilinx-linux-gnueabi-objdump
configure:4831: found /root/CodeSourcery/Sourcery_CodeBench_Lite_for_Xilinx_GNU_Linux/bin/arm-xilinx-linux-gnueabi-objdump
configure:4842: result: arm-xilinx-linux-gnueabi-objdump
configure:4914: checking how to recognize dependent libraries
configure:5116: result: pass_all
configure:5161: checking for arm-xilinx-linux-gnueabi-dlltool
configure:5191: result: no
configure:5201: checking for dlltool
configure:5231: result: no
configure:5261: checking how to associate runtime and link libraries
configure:5288: result: printf %s\n
configure:5305: checking for arm-xilinx-linux-gnueabi-ar
configure:5321: found /root/CodeSourcery/Sourcery_CodeBench_Lite_for_Xilinx_GNU_Linux/bin/arm-xilinx-linux-gnueabi-ar
configure:5332: result: arm-xilinx-linux-gnueabi-ar
configure:5413: checking for archiver @FILE support
configure:5430: arm-xilinx-linux-gnueabi-gcc -c -g -O2 conftest.c >&5
configure:5430: $? = 0
configure:5433: arm-xilinx-linux-gnueabi-ar cru libconftest.a @conftest.lst >&5
configure:5436: $? = 0
configure:5441: arm-xilinx-linux-gnueabi-ar cru libconftest.a @conftest.lst >&5
arm-xilinx-linux-gnueabi-ar: conftest.o: No such file or directory
configure:5444: $? = 1
configure:5456: result: @
configure:5474: checking for arm-xilinx-linux-gnueabi-strip
configure:5501: result: arm-xilinx-linux-gnueabi-strip
configure:5573: checking for arm-xilinx-linux-gnueabi-ranlib
configure:5589: found /root/CodeSourcery/Sourcery_CodeBench_Lite_for_Xilinx_GNU_Linux/bin/arm-xilinx-linux-gnueabi-ranlib
configure:5600: result: arm-xilinx-linux-gnueabi-ranlib
configure:5742: checking command to parse /root/CodeSourcery/Sourcery_CodeBench_Lite_for_Xilinx_GNU_Linux/bin/arm-xilinx-linux-gnueabi-nm -B output from arm-xilinx-linux-gnueabi-gcc object
configure:5862: arm-xilinx-linux-gnueabi-gcc -c -g -O2 conftest.c >&5
configure:5865: $? = 0
configure:5869: /root/CodeSourcery/Sourcery_CodeBench_Lite_for_Xilinx_GNU_Linux/bin/arm-xilinx-linux-gnueabi-nm -B conftest.o \| sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | sed '/ __gnu_lto/d' \> conftest.nm
configure:5872: $? = 0
configure:5938: arm-xilinx-linux-gnueabi-gcc -o conftest -g -O2 conftest.c conftstm.o >&5
configure:5941: $? = 0
configure:5979: result: ok
configure:6016: checking for sysroot
configure:6046: result: no
configure:6262: checking for arm-xilinx-linux-gnueabi-mt
configure:6292: result: no
configure:6302: checking for mt
configure:6332: result: no
configure:6352: checking if : is a manifest tool
configure:6358: : '-?'
configure:6366: result: no
configure:7008: checking how to run the C preprocessor
configure:7039: arm-xilinx-linux-gnueabi-gcc -E conftest.c
configure:7039: $? = 0
configure:7053: arm-xilinx-linux-gnueabi-gcc -E conftest.c
conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory
compilation terminated.
configure:7053: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "fast-ant"
| #define PACKAGE_TARNAME "fast-ant"
| #define PACKAGE_VERSION "0.4.3"
| #define PACKAGE_STRING "fast-ant 0.4.3"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "fast-ant"
| #define VERSION "0.4.3"
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:7078: result: arm-xilinx-linux-gnueabi-gcc -E
configure:7098: arm-xilinx-linux-gnueabi-gcc -E conftest.c
configure:7098: $? = 0
configure:7112: arm-xilinx-linux-gnueabi-gcc -E conftest.c
conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory
compilation terminated.
configure:7112: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "fast-ant"
| #define PACKAGE_TARNAME "fast-ant"
| #define PACKAGE_VERSION "0.4.3"
| #define PACKAGE_STRING "fast-ant 0.4.3"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "fast-ant"
| #define VERSION "0.4.3"
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:7141: checking for ANSI C header files
configure:7161: arm-xilinx-linux-gnueabi-gcc -c -g -O2 conftest.c >&5
configure:7161: $? = 0
configure:7245: result: yes
configure:7258: checking for sys/types.h
configure:7258: arm-xilinx-linux-gnueabi-gcc -c -g -O2 conftest.c >&5
configure:7258: $? = 0
configure:7258: result: yes
configure:7258: checking for sys/stat.h
configure:7258: arm-xilinx-linux-gnueabi-gcc -c -g -O2 conftest.c >&5
configure:7258: $? = 0
configure:7258: result: yes
configure:7258: checking for stdlib.h
configure:7258: arm-xilinx-linux-gnueabi-gcc -c -g -O2 conftest.c >&5
configure:7258: $? = 0
configure:7258: result: yes
configure:7258: checking for string.h
configure:7258: arm-xilinx-linux-gnueabi-gcc -c -g -O2 conftest.c >&5
configure:7258: $? = 0
configure:7258: result: yes
configure:7258: checking for memory.h
configure:7258: arm-xilinx-linux-gnueabi-gcc -c -g -O2 conftest.c >&5
configure:7258: $? = 0
configure:7258: result: yes
configure:7258: checking for strings.h
configure:7258: arm-xilinx-linux-gnueabi-gcc -c -g -O2 conftest.c >&5
configure:7258: $? = 0
configure:7258: result: yes
configure:7258: checking for inttypes.h
configure:7258: arm-xilinx-linux-gnueabi-gcc -c -g -O2 conftest.c >&5
configure:7258: $? = 0
configure:7258: result: yes
configure:7258: checking for stdint.h
configure:7258: arm-xilinx-linux-gnueabi-gcc -c -g -O2 conftest.c >&5
configure:7258: $? = 0
configure:7258: result: yes
configure:7258: checking for unistd.h
configure:7258: arm-xilinx-linux-gnueabi-gcc -c -g -O2 conftest.c >&5
configure:7258: $? = 0
configure:7258: result: yes
configure:7272: checking for dlfcn.h
configure:7272: arm-xilinx-linux-gnueabi-gcc -c -g -O2 conftest.c >&5
configure:7272: $? = 0
configure:7272: result: yes
configure:7478: checking for objdir
configure:7493: result: .libs
configure:7760: checking if arm-xilinx-linux-gnueabi-gcc supports -fno-rtti -fno-exceptions
configure:7778: arm-xilinx-linux-gnueabi-gcc -c -g -O2 -fno-rtti -fno-exceptions conftest.c >&5
cc1: warning: command line option '-fno-rtti' is valid for C++/ObjC++ but not for C [enabled by default]
configure:7782: $? = 0
configure:7795: result: no
configure:8122: checking for arm-xilinx-linux-gnueabi-gcc option to produce PIC
configure:8129: result: -fPIC -DPIC
configure:8137: checking if arm-xilinx-linux-gnueabi-gcc PIC flag -fPIC -DPIC works
configure:8155: arm-xilinx-linux-gnueabi-gcc -c -g -O2 -fPIC -DPIC -DPIC conftest.c >&5
configure:8159: $? = 0
configure:8172: result: yes
configure:8201: checking if arm-xilinx-linux-gnueabi-gcc static flag -static works
configure:8229: result: yes
configure:8244: checking if arm-xilinx-linux-gnueabi-gcc supports -c -o file.o
configure:8265: arm-xilinx-linux-gnueabi-gcc -c -g -O2 -o out/conftest2.o conftest.c >&5
configure:8269: $? = 0
configure:8291: result: yes
configure:8299: checking if arm-xilinx-linux-gnueabi-gcc supports -c -o file.o
configure:8346: result: yes
configure:8379: checking whether the arm-xilinx-linux-gnueabi-gcc linker (/root/CodeSourcery/Sourcery_CodeBench_Lite_for_Xilinx_GNU_Linux/arm-xilinx-linux-gnueabi/bin/ld) supports shared libraries
configure:9532: result: yes
configure:9569: checking whether -lc should be explicitly linked in
configure:9577: arm-xilinx-linux-gnueabi-gcc -c -g -O2 conftest.c >&5
configure:9580: $? = 0
configure:9595: arm-xilinx-linux-gnueabi-gcc -shared -fPIC -DPIC conftest.o -v -Wl,-soname -Wl,conftest -o conftest 2\>\&1 \| /usr/bin/grep -lc \>/dev/null 2\>\&1
configure:9598: $? = 0
configure:9612: result: no
configure:9772: checking dynamic linker characteristics
configure:10283: arm-xilinx-linux-gnueabi-gcc -o conftest -g -O2 -Wl,-rpath -Wl,/foo conftest.c >&5
configure:10283: $? = 0
configure:10509: result: GNU/Linux ld.so
configure:10616: checking how to hardcode library paths into programs
configure:10641: result: immediate
configure:11181: checking whether stripping libraries is possible
configure:11186: result: yes
configure:11221: checking if libtool supports shared libraries
configure:11223: result: yes
configure:11226: checking whether to build shared libraries
configure:11247: result: yes
configure:11250: checking whether to build static libraries
configure:11254: result: yes
configure:11407: checking that generated files are newer than configure
configure:11413: result: done
configure:11436: creating ./config.status
## ---------------------- ##
## Running config.status. ##
## ---------------------- ##
This file was extended by fast-ant config.status 0.4.3, which was
generated by GNU Autoconf 2.69. Invocation command line was
CONFIG_FILES =
CONFIG_HEADERS =
CONFIG_LINKS =
CONFIG_COMMANDS =
$ ./config.status
on localhost.localdomain
config.status:1104: creating Makefile
config.status:1104: creating src/Makefile
config.status:1104: creating include/Makefile
config.status:1104: creating lib/Makefile
config.status:1104: creating app/Makefile
config.status:1104: creating tools/Makefile
config.status:1104: creating lib/libreg/Makefile
config.status:1104: creating lib/librule/Makefile
config.status:1104: creating lib/libua/Makefile
config.status:1104: creating lib/libofp/Makefile
config.status:1104: creating lib/libams/Makefile
config.status:1104: creating lib/libant/Makefile
config.status:1104: creating app/l2switch/Makefile
config.status:1104: creating app/openflow/Makefile
config.status:1104: creating app/ams/Makefile
config.status:1104: creating app/ant/Makefile
config.status:1104: creating tools/debug/Makefile
config.status:1104: creating tools/reg_rw/Makefile
config.status:1104: creating tools/rule_rw/Makefile
config.status:1104: creating tools/port_counts/Makefile
config.status:1104: creating tools/port_status/Makefile
config.status:1104: creating tools/ctl_rw/Makefile
config.status:1104: creating tools/mem_rw/Makefile
config.status:1104: creating tools/version/Makefile
config.status:1104: creating tools/ua_fwd/Makefile
config.status:1104: creating config.h
config.status:1333: executing depfiles commands
config.status:1333: executing libtool commands
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=x86_64-unknown-linux-gnu
ac_cv_c_compiler_gnu=yes
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=arm-xilinx-linux-gnueabi
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_header_dlfcn_h=yes
ac_cv_header_inttypes_h=yes
ac_cv_header_memory_h=yes
ac_cv_header_stdc=yes
ac_cv_header_stdint_h=yes
ac_cv_header_stdlib_h=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_unistd_h=yes
ac_cv_host=arm-xilinx-linux-gnueabi
ac_cv_objext=o
ac_cv_path_EGREP='/usr/bin/grep -E'
ac_cv_path_FGREP='/usr/bin/grep -F'
ac_cv_path_GREP=/usr/bin/grep
ac_cv_path_SED=/usr/bin/sed
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/usr/bin/mkdir
ac_cv_prog_AR=arm-xilinx-linux-gnueabi-ar
ac_cv_prog_AWK=gawk
ac_cv_prog_CC=arm-xilinx-linux-gnueabi-gcc
ac_cv_prog_CPP='arm-xilinx-linux-gnueabi-gcc -E'
ac_cv_prog_OBJDUMP=arm-xilinx-linux-gnueabi-objdump
ac_cv_prog_RANLIB=arm-xilinx-linux-gnueabi-ranlib
ac_cv_prog_STRIP=arm-xilinx-linux-gnueabi-strip
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
ac_cv_prog_make_make_set=yes
am_cv_CC_dependencies_compiler_type=gcc3
am_cv_make_support_nested_variables=yes
lt_cv_ar_at_file=@
lt_cv_archive_cmds_need_lc=no
lt_cv_deplibs_check_method=pass_all
lt_cv_file_magic_cmd='$MAGIC_CMD'
lt_cv_file_magic_test_file=
lt_cv_ld_reload_flag=-r
lt_cv_nm_interface='BSD nm'
lt_cv_objdir=.libs
lt_cv_path_LD=/root/CodeSourcery/Sourcery_CodeBench_Lite_for_Xilinx_GNU_Linux/arm-xilinx-linux-gnueabi/bin/ld
lt_cv_path_NM='/root/CodeSourcery/Sourcery_CodeBench_Lite_for_Xilinx_GNU_Linux/bin/arm-xilinx-linux-gnueabi-nm -B'
lt_cv_path_mainfest_tool=no
lt_cv_prog_compiler_c_o=yes
lt_cv_prog_compiler_pic='-fPIC -DPIC'
lt_cv_prog_compiler_pic_works=yes
lt_cv_prog_compiler_rtti_exceptions=no
lt_cv_prog_compiler_static_works=yes
lt_cv_prog_gnu_ld=yes
lt_cv_sharedlib_from_linklib_cmd='printf %s\n'
lt_cv_shlibpath_overrides_runpath=no
lt_cv_sys_global_symbol_pipe='sed -n -e '\''s/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p'\'' | sed '\''/ __gnu_lto/d'\'''
lt_cv_sys_global_symbol_to_c_name_address='sed -n -e '\''s/^: \([^ ]*\)[ ]*$/ {\"\1\", (void *) 0},/p'\'' -e '\''s/^[ABCDGIRSTW]* \([^ ]*\) \([^ ]*\)$/ {"\2", (void *) \&\2},/p'\'''
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='sed -n -e '\''s/^: \([^ ]*\)[ ]*$/ {\"\1\", (void *) 0},/p'\'' -e '\''s/^[ABCDGIRSTW]* \([^ ]*\) \(lib[^ ]*\)$/ {"\2", (void *) \&\2},/p'\'' -e '\''s/^[ABCDGIRSTW]* \([^ ]*\) \([^ ]*\)$/ {"lib\2", (void *) \&\2},/p'\'''
lt_cv_sys_global_symbol_to_cdecl='sed -n -e '\''s/^T .* \(.*\)$/extern int \1();/p'\'' -e '\''s/^[ABCDGIRSTW]* .* \(.*\)$/extern char \1;/p'\'''
lt_cv_sys_max_cmd_len=1572864
lt_cv_to_host_file_cmd=func_convert_file_noop
lt_cv_to_tool_file_cmd=func_convert_file_noop
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL='${SHELL} /home/dwinters/fast-ant/missing aclocal-1.13'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='0'
AM_V='$(V)'
AR='arm-xilinx-linux-gnueabi-ar'
AUTOCONF='${SHELL} /home/dwinters/fast-ant/missing autoconf'
AUTOHEADER='${SHELL} /home/dwinters/fast-ant/missing autoheader'
AUTOMAKE='${SHELL} /home/dwinters/fast-ant/missing automake-1.13'
AWK='gawk'
CC='arm-xilinx-linux-gnueabi-gcc'
CCDEPMODE='depmode=gcc3'
CFLAGS='-g -O2'
CPP='arm-xilinx-linux-gnueabi-gcc -E'
CPPFLAGS=''
CYGPATH_W='echo'
DEFS='-DHAVE_CONFIG_H'
DEPDIR='.deps'
DLLTOOL='false'
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='/usr/bin/grep -E'
EXEEXT=''
FGREP='/usr/bin/grep -F'
GREP='/usr/bin/grep'
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LD='/root/CodeSourcery/Sourcery_CodeBench_Lite_for_Xilinx_GNU_Linux/arm-xilinx-linux-gnueabi/bin/ld'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
LIPO=''
LN_S='ln -s'
LTLIBOBJS=''
MAKEINFO='${SHELL} /home/dwinters/fast-ant/missing makeinfo'
MANIFEST_TOOL=':'
MKDIR_P='/usr/bin/mkdir -p'
NM='/root/CodeSourcery/Sourcery_CodeBench_Lite_for_Xilinx_GNU_Linux/bin/arm-xilinx-linux-gnueabi-nm -B'
NMEDIT=''
OBJDUMP='arm-xilinx-linux-gnueabi-objdump'
OBJEXT='o'
OTOOL64=''
OTOOL=''
PACKAGE='fast-ant'
PACKAGE_BUGREPORT=''
PACKAGE_NAME='fast-ant'
PACKAGE_STRING='fast-ant 0.4.3'
PACKAGE_TARNAME='fast-ant'
PACKAGE_URL=''
PACKAGE_VERSION='0.4.3'
PATH_SEPARATOR=':'
RANLIB='arm-xilinx-linux-gnueabi-ranlib'
SED='/usr/bin/sed'
SET_MAKE=''
SHELL='/bin/sh'
STRIP='arm-xilinx-linux-gnueabi-strip'
VERSION='0.4.3'
ac_ct_AR=''
ac_ct_CC=''
ac_ct_DUMPBIN=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE='#'
am__fastdepCC_FALSE='#'
am__fastdepCC_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__nodep='_no'
am__quote=''
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
bindir='${exec_prefix}/bin'
build='x86_64-unknown-linux-gnu'
build_alias=''
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='unknown'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='${prefix}'
host='arm-xilinx-linux-gnueabi'
host_alias='arm-xilinx-linux-gnueabi'
host_cpu='arm'
host_os='linux-gnueabi'
host_vendor='xilinx'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /home/dwinters/fast-ant/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr/local'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME "fast-ant"
#define PACKAGE_TARNAME "fast-ant"
#define PACKAGE_VERSION "0.4.3"
#define PACKAGE_STRING "fast-ant 0.4.3"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
#define PACKAGE "fast-ant"
#define VERSION "0.4.3"
#define STDC_HEADERS 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STRINGS_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_UNISTD_H 1
#define HAVE_DLFCN_H 1
#define LT_OBJDIR ".libs/"
configure: exit 0

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -0,0 +1,54 @@
dnl Process this file with autoconf to produce a configure script.
dnl Created by Anjuta application wizard.
AC_INIT(fast-ant, 0.4.3)
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([1.11])
AM_SILENT_RULES([yes])
AC_PROG_CC
LT_INIT
AC_OUTPUT([
Makefile
src/Makefile
include/Makefile
lib/Makefile
app/Makefile
tools/Makefile
lib/libreg/Makefile
lib/librule/Makefile
lib/libua/Makefile
lib/libofp/Makefile
lib/libams/Makefile
lib/libant/Makefile
app/l2switch/Makefile
app/openflow/Makefile
app/ams/Makefile
app/ant/Makefile
tools/debug/Makefile
tools/reg_rw/Makefile
tools/rule_rw/Makefile
tools/port_counts/Makefile
tools/port_status/Makefile
tools/ctl_rw/Makefile
tools/mem_rw/Makefile
tools/version/Makefile
tools/ua_fwd/Makefile
])

@ -0,0 +1,18 @@
CC = gcc
CFLAGS = -Wall -O -g
CXXFLAGS =
INCLUDE = -I ./include/
TARGET = sent
LIBVAR = -lua -lreg -lsent -lpthread
LIBPATH = -L./lib
vpath %.h ./include
vpath %.c ./
all: main_sent.c $(LIB)
# cd ./staticlib && make all
$(CC) $(CFLAGS) $(INCLUDE) -o $(TARGET) main_sent.c SentSocket.c $(LIBVAR) $(LIBPATH)
clean:
rm -f *.o
rm -f $(TARGET)

@ -0,0 +1,187 @@
// 创建监套接字
#include "SentSocket.h"
int createSocket()
{
int fd = socket(AF_INET, SOCK_STREAM, 0);
if (fd == -1)
{
perror("socket");
return -1;
}
printf("套接字创建成功, fd=%d\n", fd);
return fd;
}
// 绑定本地的IP和端口
int bindSocket(int lfd, unsigned short port)
{
struct sockaddr_in saddr;
saddr.sin_family = AF_INET;
saddr.sin_port = htons(port);
saddr.sin_addr.s_addr = INADDR_ANY; // 0 = 0.0.0.0
int ret = bind(lfd, (struct sockaddr *)&saddr, sizeof(saddr));
if (ret == -1)
{
perror("bind");
return -1;
}
printf("套接字绑定成功, ip: %s, port: %d\n",
inet_ntoa(saddr.sin_addr), port);
return ret;
}
// 设置监听
int setListen(int lfd)
{
int ret = listen(lfd, 128);
if (ret == -1)
{
perror("listen");
return -1;
}
printf("设置监听成功...\n");
return ret;
}
// 阻塞并等待客户端的连接
int acceptConn(int lfd, struct sockaddr_in *addr)
{
int cfd = -1;
if (addr == NULL)
{
cfd = accept(lfd, NULL, NULL);
}
else
{
int addrlen = sizeof(struct sockaddr_in);
cfd = accept(lfd, (struct sockaddr *)addr, &addrlen);
}
if (cfd == -1)
{
perror("accept");
return -1;
}
printf("成功和客户端建立连接...\n");
return cfd;
}
// 接收数据
int recvMsg(int cfd, char *msg)
{
if (msg == NULL || cfd <= 0)
{
return -1;
}
// 接收数据
// 1. 读数据头
int len = 0;
readn(cfd, (char *)&len, 4);
len = ntohl(len);
printf("数据块大小: %d\n", len);
// 根据读出的长度分配内存
char *buf = (char *)malloc(len + 1);
int ret = readn(cfd, buf, len);
if (ret != len)
{
return -1;
}
buf[len] = '\0';
*msg = buf;
return ret;
}
// 发送数据
int sendMsg(int cfd, const char *msg, int len)
{
if (msg == NULL || len <= 0)
{
return -1;
}
// 申请内存空间: 数据长度 + 包头4字节(存储数据长度)
char *data = (char *)malloc(len + 4);
int bigLen = htonl(len);
memcpy(data, &bigLen, 4);
memcpy(data + 4, msg, len);
// 发送数据
int ret = writen(cfd, data, len + 4);
return ret;
}
// 连接服务器
int connectToHost(int fd, const char *ip, unsigned short port)
{
// 2. 连接服务器IP port
struct sockaddr_in saddr;
saddr.sin_family = AF_INET;
saddr.sin_port = htons(port);
inet_pton(AF_INET, ip, &saddr.sin_addr.s_addr);
int ret = connect(fd, (struct sockaddr *)&saddr, sizeof(saddr));
if (ret == -1)
{
perror("connect");
return -1;
}
printf("成功和服务器建立连接...\n");
return ret;
}
// 关闭套接字
int closeSocket(int fd)
{
int ret = close(fd);
if (ret == -1)
{
perror("close");
}
return ret;
}
// 接收指定的字节数
// 函数调用成功返回 size
int readn(int fd, char *buf, int size)
{
int nread = 0;
int left = size;
char *p = buf;
while (left > 0)
{
if ((nread = read(fd, p, left)) > 0)
{
printf("%d\n", nread);
p += nread;
left -= nread;
}
else if (nread == -1)
{
return -1;
}
}
return size;
}
// 发送指定的字节数
// 函数调用成功返回 size
int writen(int fd, const char *msg, int size)
{
int left = size;
int nwrite = 0;
const char *p = msg;
while (left > 0)
{
if ((nwrite = write(fd, msg, left)) > 0)
{
p += nwrite;
left -= nwrite;
}
else if (nwrite == -1)
{
return -1;
}
}
return size;
}

Binary file not shown.

@ -0,0 +1,18 @@
#ifndef SENTSOCKET_H
#define SENTSOCKET_H
#include <arpa/inet.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
int bindSocket(int lfd, unsigned short port);
int setListen(int lfd);
int acceptConn(int lfd, struct sockaddr_in *addr);
int connectToHost(int fd, const char *ip, unsigned short port);
int createSocket();
int sendMsg(int fd, const char *msg, int len);
int recvMsg(int fd, char *msg);
int closeSocket(int fd);
int readn(int fd, char *buf, int size);
int writen(int fd, const char *msg, int size);
#endif

@ -0,0 +1,80 @@
#ifndef __FAST_H__
#define __FAST_H__
#include <stdio.h>
#include <fcntl.h>
#include <stdlib.h>
#include <string.h>
#include <endian.h>
#include <signal.h>
#include <memory.h>
#include <pthread.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/time.h>
#include <sys/socket.h>
#include <linux/if_ether.h>
#include <linux/netlink.h>
#include <netinet/in.h> /*IPv6 addr*/
#include <sys/file.h>
#include <sys/mman.h>
/** 是否启动软件调试模式,不启用对硬件操作,对硬件寄存器读写进行屏蔽,仅做打印输出 */
#define XDL_DEBUG 1 /**< 启用软件调试模式 */
#undef XDL_DEBUG /**< 不启用软件调试模式 */
/** 硬件平台使用ZYNQ系列的定义20180601开始使用*/
#define OPENBOX_S4 1 /**< 硬件平台使用ZYNQ平台 */
//#undef OPENBOX_S4 /**< 硬件平台不使用ZYNQ平台 */
/** 硬件平台使用OpenBox-S28系列的定义20180601开始使用*/
#define OPENBOX_S28 1 /**< 硬件平台使用ZYNQ平台 */
#undef OPENBOX_S28 /**< 硬件平台不使用ZYNQ平台 */
/*FAST架构数据结构版本号1.0*/
#define FAST_10 1
#undef FAST_10
/*FAST架构数据结构版本号2.0*/
#define FAST_20 1
//#undef FAST_20
/** 硬件查表模式是否使用BV查表默认为顺序匹配查表 */
#define LOOKUP_BV 1 /**< 硬件查表使用BV */
#undef LOOKUP_BV /**< 硬件查表不使用BV */
#include "fast_type.h"
#include "fast_struct.h"
#include "fast_err.h"
#include "fast_vaddr.h"
#include "fast_version.h"
#include "fast_sys_dev.h"
#include "sent_driver.h"
/*---------------REG------------------*/
u64 fast_reg_rd(u64 regaddr);/** 读硬件64位寄存器*/
void fast_reg_wr(u64 regaddr,u64 regvalue);/** 写硬件64位寄存器*/
/*---------------UA------------------*/
int fast_ua_init(int mid,fast_ua_recv_callback callback);/** UA模块初始化*/
void fast_ua_destroy(void);/** UA模块注销(销毁)*/
int fast_ua_send(struct fast_packet *pkt,int pkt_len);/** UA发送报文功能函数*/
void fast_ua_recv();/** UA启动报文接收线程(接收到报文后,回调用户注册函数)*/
void fast_ua_hw_wr(u8 dmid,u32 addr,u32 value,u32 mask);
u32 fast_ua_hw_rd(u8 dmid,u32 addr,u32 mask);
/*--------------DEBUG----------------*/
#ifdef FAST_KERNEL
#define PFX "fastK->"
#define EPFX "KERR-fast->"
#define FAST_DBG(args...) printk(PFX args)
#define FAST_ERR(args...) printk(EPFX args)
#else
#define PFX "fastU->"
#define EPFX "UERR-fast->"
#define FAST_DBG(args...) do{printf(PFX);printf(args);}while(0)
#define FAST_ERR(args...) do{printf(EPFX);printf(args);exit(0);}while(0)
#endif
#endif//__FAST_H__

@ -0,0 +1,146 @@
#ifndef __SENT_DRIVER_H__
#define __SENT_DRIVER_H__
#include <unistd.h>
//#include "fast_type.h"
typedef char s8;
typedef unsigned char u8;
typedef short s16;
typedef unsigned short u16;
typedef int s32;
typedef unsigned int u32;
typedef long long s64;
typedef unsigned long long u64;
/*
//declaration of vaddr on sent-PGM
*/
#define SENT_TIME_CNT 0x00000002 // 64b, test time counter
#define SENT_TIME_REG 0x00010002 // 64b, test time reg
#define WR_SOFT_RST 0x00000000 // 1b, software rst for pgm_wr
#define SENT_RATE_CNT 0x00000001 // 32b, sent rate counter
#define SENT_RATE_REG 0x00010001 // 32b, sent rate reg
#define LAT_PKT_CNT 0x00000002 // 32b, for latency test cnt
#define LAT_PKT_REG 0x00010002 // 32b, for latency test reg
#define SENT_BIT_CNT 0x00000004 // 64b, total sent bits
#define SENT_PKT_CNT 0x00000006 // 64b, total sent packets
#define LAT_FLAG 0x00010010 // 1b, latency test flag
#define RD_SOFT_RST 0x00000000 // 1b, software rst for pgm_rd
#define RD_STATE 0x11111111 // 6b, pgm_rd state machine
/*
//declaration of vaddr on sent (SCM part)
*/
#define SCM_STATE 0x70000000 // 3b, scm_state machine
#define SCM_SOFT_RST 0x70000001 // 1b, software rst for SCM
#define N_RTT 0x70000002 // 32b, total wait time after receiving finish signal
#define PROTO_TYPE 0x70000003 // 8b, protype of packets
#define SCM_BIT_CNT 0x70000009 // 64b, total received bits of SCM
#define SCM_PKT_CNT 0x7000000b // 64b, total received packets of SCM
//#define SCM_TIME_CNT 0x7000000d // 64b, total monitoring time of SCM
#define SCM_RAM_ADDR 0x80000000 // 32b, the base addr of latency in SCM_RAM
#define sent_HW_STATE 0x11111111
/*
//decalartion of state machine of PGM and SCM
*/
#define SCM_FETCH_S 4
#define PGM_RD_FIN_S 16
/**
*
*/
struct sent_cnt
{
u64 test_time; /** 共计测试时间 */
u64 sent_bits; /** total sent bytes of pcakets */
u64 sent_pkts; /** total sent num of packets */
u64 recv_bits; /** total received bytes of sending packets*/
u64 recv_pkts; /** total received number of sending packets*/
};
struct sent_parameter
{
u64 sent_time; /**total testing time period*/
u32 sent_rate; /** sending rate, num of cycles between two packets*/
u32 lat_pkt; /** blocking num pof packet between two latency flag packets*/
u8 lat_flag; /** Flag for enabling latency test*/
u32 n_rtt; /** Controlling the waiting time after sending last packet*/
u8 proto_type; /** Protocol type used in SCM*/
};
/*-------------------sent CORE FUNCTION ------------------*/
int sent_collect_counters(struct sent_cnt *result); /**获取FPGA中相关计数器的当前值*/
int sent_rst(); /**将sent的硬件模块重置为idle状态*/
int sent_check_finish(); /**检查sent hw是否已经运行结束*/
int sent_pkt_send(struct fast_packet *pkt, int pkt_len); /**发送sent报文并触发sent开始进行测试*/
u32 sent_dich_throughput_test(struct fast_packet *pkt, int pkt_len, int rnd, u32 sent_rate, u64 test_time); /**通过二分法测量吞吐率*/
int sent_set_test_para(struct sent_parameter sentp); /**设置sent测试参数*/
//@TODO support latency test in the future
//int sent_latency_test(struct fast_packet *pkt, int pkt_len); /**测量平均时延*/
void sent_print_counters(struct sent_cnt a_cnt, int len);
int import_latency_to_txt(); /**测量时延并将时延信息写入latency.txt文件*/
/*-------------------sent CORE FUNCTION ------------------*/
/*-------------------SET COUNTER & REG------------------*/
//caution that not all reg values could be set
int sent_set_sent_time_cnt(u64 regvalue);
int sent_set_sent_time_reg(u64 regvalue);
int sent_set_sent_rate_cnt(u64 regvalue);
int sent_set_sent_rate_reg(u64 regvalue);
int sent_set_lat_pkt_cnt(u64 regvalue);
int sent_set_lat_pkt_reg(u64 regvalue);
int sent_set_sent_bit_cnt(u64 regvalue);
int sent_set_sent_pkt_cnt(u64 regvalue);
int sent_set_lat_flag(u64 regvalue);
int sent_set_rd_soft_rst(u64 regvalue);
int sent_set_proto_type(u64 regvalue);
int sent_set_scm_soft_rst(u64 regvalue);
int sent_set_n_rtt(u64 regvalue);
int sent_set_scm_bit_cnt(u64 regvalue);
int sent_set_scm_pkt_cnt(u64 regvalue);
/*-------------------COUNTER & REG------------------*/
/*-------------------GET COUNTER & REG------------------*/
int sent_get_sent_time_cnt(u64 *regvalue);
int sent_get_sent_time_reg(u64 *regvalue);
int sent_get_sent_rate_cnt(u64 *regvalue);
int sent_get_sent_rate_reg(u64 *regvalue);
int sent_get_lat_pkt_cnt(u64 *regvalue);
int sent_get_lat_pkt_reg(u64 *regvalue);
int sent_get_sent_bit_cnt(u64 *regvalue);
int sent_get_sent_pkt_cnt(u64 *regvalue);
int sent_get_lat_flag(u64 *regvalue);
int sent_get_rd_soft_rst(u64 *regvalue);
int sent_get_proto_type(u64 *regvalue);
int sent_get_scm_soft_rst(u64 *regvalue);
int sent_get_n_rtt(u64 *regvalue);
int sent_get_scm_bit_cnt(u64 *regvalue);
int sent_get_scm_pkt_cnt(u64 *regvalue);
/*-------------------COUNTER & REG-------------------*/
#endif

@ -0,0 +1,23 @@
# make static lib
CC = gcc
CFLAGS = -Wall -O -g
CXXFLAGS =
INCLUDE = -I ../include
TARGET = libsent.a
LIBPATH = ./
OBJS = libsent.o
SRCS = libsent.c
all:$(OBJS)
ar rcs $(TARGET) $^
$(OBJS):$(SRCS)
$(CC) $(CFLAGS) $(INCLUDE) -c $^ -lua -lreg -lpthread
clean:
rm -f *.o
#rm -f $(LIBPATH)*

@ -0,0 +1,555 @@
#include <fast.h>
#include "../include/sent_driver.h"
#include <unistd.h>
#define SCM_MID 7
#define PGM_MID 6
#define PGM_WR_MID 61
#define PGM_RD_MID 62
#define MASK_1 0x0
/*---------------------------------sent CORE FUNCTION ----------------------------*/
/**
* collect result counter values from PGM and SCM modules
* @param outc valuable counter values in SCM and PGM module
* @return 0 if success
*/
int sent_collect_counters(struct sent_cnt *outc)
{
u64 test_time = ((u64)fast_ua_hw_rd(PGM_WR_MID, SENT_TIME_CNT, MASK_1)<<32) + fast_ua_hw_rd(PGM_WR_MID, SENT_TIME_CNT-1, MASK_1);
//printf("test_time = %llx\n", test_time);
u64 sent_bits = ((u64)fast_ua_hw_rd(PGM_RD_MID, SENT_BIT_CNT, MASK_1)<<32) + fast_ua_hw_rd(PGM_RD_MID, SENT_BIT_CNT-1, MASK_1);
//printf("test_time = %llx\n", sent_bits);
u64 sent_pkts = ((u64)fast_ua_hw_rd(PGM_RD_MID, SENT_PKT_CNT, MASK_1)<<32) + fast_ua_hw_rd(PGM_RD_MID, SENT_PKT_CNT-1, MASK_1);
//printf("test_time = %llx\n", sent_pkts);
u64 recv_bits = ((u64)fast_ua_hw_rd(SCM_MID, SCM_BIT_CNT, MASK_1)<<32) + fast_ua_hw_rd(SCM_MID, SCM_BIT_CNT-1, MASK_1);
//printf("test_time = %llx\n", recv_bits);
u64 recv_pkts = ((u64)fast_ua_hw_rd(SCM_MID, SCM_PKT_CNT, MASK_1)<<32) + fast_ua_hw_rd(SCM_MID, SCM_PKT_CNT-1, MASK_1);
//printf("test_time = %llx\n", recv_pkts);
outc->test_time = test_time;
outc->sent_bits = sent_bits;
outc->sent_pkts = sent_pkts;
outc->recv_bits = recv_bits;
outc->recv_pkts = recv_pkts;
return 0;
}
/**
* check the hw module of sent to see if all the modules are waiting for software reset
* @return [0 if true, otherwise return 1]
*/
int sent_check_finish()
{
if(fast_ua_hw_rd(PGM_RD_MID, sent_HW_STATE, MASK_1) == 0x910){
return 0;
}
else
return 1;
}
/**
* set test parameters on registers of sent modules
* @param sentp [the struct of sent parameters]
* @return [0 if success]
*/
int sent_set_test_para(struct sent_parameter sentp)
{
int i=0;
i += sent_set_sent_time_reg((u64)sentp.sent_time);
i += sent_set_sent_rate_reg((u64)sentp.sent_rate);
i += sent_set_lat_pkt_reg((u64)sentp.lat_pkt);
i += sent_set_lat_flag((u64)sentp.lat_flag);
i += sent_set_n_rtt((u64)sentp.n_rtt);
i += sent_set_proto_type((u64)sentp.proto_type);
return i;
}
/**
* send a model packet to sent hw and trigger sent to start testing
* @param pkt [model packet]
* @param pkt_len [the length of model packet]
* @return [pkt_len if success, else return -1]
*/
int sent_pkt_send(struct fast_packet *pkt, int pkt_len)
{
//used for debug
print_pkt(pkt, pkt_len);
//sent model packet
return fast_ua_send(pkt, pkt_len);
}
/**
* test the throughput using dich method, caution that this is a blocking function, only
* returns onces finished
* @param pkt [model packet]
* @param pkt_len [the length of model packet]
* @return [final throughput of the tested port]
*/
/*
u32 sent_dich_throughput_test(struct fast_packet *pkt, int pkt_len, int rnt, u32 sent_rate, u64 test_time)
{
int rnt_cnt;
u32 sent_rate_low = 0, sent_rate_high = sent_rate;
struct sent_cnt sentc;
//set test paramters
struct sent_parameter sentp;
sentp.sent_time = test_time;
sentp.sent_rate = sent_rate;
sentp.lat_pkt = 0;
sentp.lat_flag = 0;
sentp.n_rtt = 2; //we set n_rtt as 2 as default
sent_set_test_para(sentp);
sent_pkt_send(pkt, pkt_len);
usleep(test_time/100);
//chech if the test is finished
for(rnt_cnt = 0; rnt_cnt < rnt; rnt_cnt++){
sent_set_test_para(sentp);
sent_pkt_send(pkt, pkt_len);
usleep(test_time/100);
while(!sent_check_finish()){
usleep(100);
}
if(sent_collect_counters(sentc)){
printf("the dich exit with an error\n");
return -1;
}
if (sentc.sent_pkts == sentc.recv_pkts)
{
sent_rate_low = (sent_rate_high + sent_rate_low) / 2;
sentp.sent_rate = sent_rate_low;
}
else {
sent_rate_high = (sent_rate_high + sent_rate_low) / 2;
sentp.sent_rate = sent_rate_high;
}
}
return sentp.sent_rate;
}
*/
/**
* print the final counter values of the test
* @param sent_cnt [description]
*/
void sent_print_counters(struct sent_cnt a_cnt, int len){
printf("-----------------------***sent COUNTERS***-----------------------\n");
a_cnt.sent_bits = a_cnt.sent_bits-a_cnt.sent_pkts*16;
a_cnt.recv_bits = a_cnt.recv_bits-a_cnt.recv_pkts*32;
printf("Test Time:\t%llu *10ns\n", a_cnt.test_time);
printf("Sent Pkt Bytes:\t%llu\t Bytes\n", a_cnt.sent_bits);
printf("Sent Pkt Num:\t%llu\t\n", a_cnt.sent_pkts);
printf("Sent Pkt Rate:\t%llf\tKpps\n", (double)(a_cnt.sent_pkts*100000.0/a_cnt.test_time));
printf("Sent Bit Rate:\t%llf\tMbps\n", (double)(a_cnt.sent_bits*100*8.0/a_cnt.test_time));
printf("Recv Pkt Bytes:\t%llu\t Bytes\n", a_cnt.recv_bits);
printf("Recv Pkt Num:\t%llu\n", a_cnt.recv_pkts);
printf("Recv Pkt Rate:\t%llf\tKpps\n",(double)(a_cnt.recv_pkts*100000.0/a_cnt.test_time));
printf("Recv Bit Rate:\t%llf\tMbps\n",(double)((a_cnt.recv_bits*8*100.0)/a_cnt.test_time));
printf("-----------------------***sent COUNTERS***-----------------------\n");
}
/**
* reset the hw pipeline in order to enable next text round
* @return [0 if success, else failure]
*/
int sent_rst(){
//reset PGM module
u32 rd_state = fast_ua_hw_rd(PGM_RD_MID, RD_STATE, MASK_1);
if (rd_state == 0x910){
if(sent_set_rd_soft_rst(1) != 0)
return -1;
if(sent_set_rd_soft_rst(0) != 0)
return -1;
fast_ua_hw_wr(SCM_MID, 0x70000001, 1, MASK_1);
fast_ua_hw_wr(SCM_MID, 0x70000001, 0, MASK_1);
}
else {
return -1;
}
return 0;
}
/**
* Read latency into latency test file, in a readable format
* @return [0 if success, else return -1]
*/
int import_latency_to_txt(int size){
FILE * fid = fopen("latency_out", "w");
if (fid == NULL){
printf("write latency_out.txt error!\n");
return -1;
}
fprintf(fid, "/*****************latency test result****************/\n");
fprintf(fid, " Unit *10ns \n");
int i, j=0;
u32 in_file_latency = 0;
for (i = 0; i < 1023; i++){
in_file_latency = fast_ua_hw_rd(SCM_MID, SCM_RAM_ADDR + i, MASK_1);
usleep(1);
if(size>0 && size<=64){
fprintf(fid, "%04d round: %uns\t", i, (in_file_latency*10-260));
}
else if(size >64 && size <=128){
fprintf(fid, "%04d round: %uns\t", i, (in_file_latency*10-730));
}
else if(size>128 && size <=256){
fprintf(fid, "%04d round: %uns\t", i, (in_file_latency*10-2400));
}
else if(size>256 && size <= 512){
fprintf(fid, "%04d round: %uns\t", i, (in_file_latency*10-5710));
}
else if(size>512 && size <= 1024){
fprintf(fid, "%04d round: %uns\t", i, (in_file_latency*10-12370));
}
else if(size>1024 && size <= 1500){
fprintf(fid, "%04d round: %uns\t", i, (in_file_latency*10-19370));
}
else
fprintf(fid, "%04d round: invalid value.\t", i);
j++;
if(j == 5){
fprintf(fid, "\n");
j = 0;
}
}
fprintf(fid, "\n/*****************latency test result****************/\n");
fclose(fid);
printf("latency_out.txt generated!\n");
return 0;
}
/*---------------------------------sent CORE FUNCTION ----------------------------*/
/*---------------------------------SET REG & COUNTERS----------------------------*/
/**
* set sent_time_cnt value in PGM module
* @param regvalue reset sent_time_cnt
* @return 0 if success
*/
int sent_set_sent_time_cnt(u64 regvalue)
{
u32 regvalue_tmp_high = ((u32) regvalue>>32);
u32 regvalue_tmp_low = ((u32) regvalue);
fast_ua_hw_wr(PGM_RD_MID, SENT_TIME_CNT, regvalue_tmp_high, MASK_1);
fast_ua_hw_wr(PGM_RD_MID, SENT_TIME_CNT - 1, regvalue_tmp_low, MASK_1);
return 0;
}
/**
* set sent_time_reg as regvalue
* @param regvalue sent_time_regvalue value
* @return 0 if success
*/
int sent_set_sent_time_reg(u64 regvalue)
{
u32 regvalue_tmp_high = regvalue>>32;
printf("regvalue tmp high = %lx\n", regvalue_tmp_high);
u32 regvalue_tmp_low = ((u32) regvalue);
printf("regvalue tmp low = %lx\n", regvalue_tmp_low);
fast_ua_hw_wr(PGM_WR_MID, SENT_TIME_REG, regvalue_tmp_high, MASK_1);
fast_ua_hw_wr(PGM_WR_MID, SENT_TIME_REG - 1, regvalue_tmp_low, MASK_1);
return 0;
}
int sent_set_sent_rate_cnt(u64 regvalue)
{
u32 regvalue_tmp = (u32) regvalue;
fast_ua_hw_wr(PGM_RD_MID, SENT_RATE_CNT, regvalue_tmp, MASK_1);
return 0;
}
int sent_set_sent_rate_reg(u64 regvalue)
{
u32 regvalue_tmp = (u32) regvalue;
fast_ua_hw_wr(PGM_RD_MID, SENT_RATE_REG, regvalue_tmp, MASK_1);
return 0;
}
int sent_set_lat_pkt_cnt(u64 regvalue)
{
u32 regvalue_tmp = (u32) regvalue;
fast_ua_hw_wr(PGM_RD_MID, LAT_PKT_CNT, regvalue_tmp, MASK_1);
return 0;
}
int sent_set_lat_pkt_reg(u64 regvalue)
{
u32 regvalue_tmp = (u32) regvalue;
fast_ua_hw_wr(PGM_RD_MID, LAT_PKT_REG, regvalue_tmp, MASK_1);
return 0;
}
/**
* set counters to count for total bytes of traffic
* @param regvalue the counter value to be set
* @return 0 if success
*/
int sent_set_sent_bit_cnt(u64 regvalue)
{
u32 regvalue_tmp_high = ((u32) regvalue>>32);
u32 regvalue_tmp_low = ((u32) regvalue);
fast_ua_hw_wr(PGM_RD_MID, SENT_BIT_CNT, regvalue_tmp_high, MASK_1);
fast_ua_hw_wr(PGM_RD_MID, SENT_BIT_CNT - 1, regvalue_tmp_low, MASK_1);
return 0;
}
int sent_set_sent_pkt_cnt(u64 regvalue)
{
u32 regvalue_tmp_high = ((u32) regvalue>>32);
u32 regvalue_tmp_low = ((u32) regvalue);
fast_ua_hw_wr(PGM_RD_MID, SENT_PKT_CNT, regvalue_tmp_high, MASK_1);
fast_ua_hw_wr(PGM_RD_MID, SENT_PKT_CNT - 1, regvalue_tmp_low, MASK_1);
return 0;
}
int sent_set_lat_flag(u64 regvalue)
{
u32 regvalue_tmp = (u32) regvalue;
fast_ua_hw_wr(PGM_RD_MID, LAT_FLAG, regvalue_tmp, MASK_1);
return 0;
}
int sent_set_rd_soft_rst(u64 regvalue)
{
u32 regvalue_tmp = (u32) regvalue;
fast_ua_hw_wr(PGM_RD_MID, RD_SOFT_RST, regvalue_tmp, MASK_1);
return 0;
}
int sent_set_proto_type(u64 regvalue)
{
u32 regvalue_tmp = (u32) regvalue;
fast_ua_hw_wr(SCM_MID, PROTO_TYPE, regvalue_tmp, MASK_1);
return 0;
}
int sent_set_scm_soft_rst(u64 regvalue)
{
u32 regvalue_tmp = (u32) regvalue;
fast_ua_hw_wr(SCM_MID, SCM_SOFT_RST, regvalue_tmp, MASK_1);
return 0;
}
int sent_set_n_rtt(u64 regvalue)
{
u32 regvalue_tmp = (u32) regvalue;
fast_ua_hw_wr(SCM_MID, N_RTT, regvalue_tmp, MASK_1);
return 0;
}
int sent_set_scm_bit_cnt(u64 regvalue)
{
u32 regvalue_tmp_high = ((u32) regvalue>>32);
u32 regvalue_tmp_low = ((u32) regvalue);
fast_ua_hw_wr(SCM_MID, SCM_BIT_CNT, regvalue_tmp_high, MASK_1);
fast_ua_hw_wr(SCM_MID, SCM_BIT_CNT - 1, regvalue_tmp_low, MASK_1);
return 0;
}
int sent_set_scm_pkt_cnt(u64 regvalue)
{
u32 regvalue_tmp_high = ((u32) regvalue>>32);
u32 regvalue_tmp_low = ((u32) regvalue);
fast_ua_hw_wr(SCM_MID, SCM_PKT_CNT, regvalue_tmp_high, MASK_1);
fast_ua_hw_wr(SCM_MID, SCM_PKT_CNT - 1, regvalue_tmp_low, MASK_1);
return 0;
}
/*---------------------------------SET REG & COUNTERS----------------------------*/
/*---------------------------------GET REG & COUNTERS----------------------------*/
/**
* get the reg value from sent hw
* @param regvalue reg values that are to be obtained from hw.
* @return 0 if success
*/
int sent_get_sent_time_cnt(u64 *regvalue)
{
u32 regvalue_tmp_high = fast_ua_hw_rd(PGM_WR_MID, SENT_TIME_CNT, MASK_1);
u32 regvalue_tmp_low = fast_ua_hw_rd(PGM_WR_MID, SENT_TIME_CNT - 1, MASK_1);
*regvalue = ((u64)regvalue_tmp_high<<32) + (u64)regvalue_tmp_low;
return 0;
}
int sent_get_sent_time_reg(u64 *regvalue)
{
u32 regvalue_tmp_high = fast_ua_hw_rd(PGM_WR_MID, SENT_TIME_REG, MASK_1);
u32 regvalue_tmp_low = fast_ua_hw_rd(PGM_WR_MID, SENT_TIME_REG - 1, MASK_1);
*regvalue = ((u64)regvalue_tmp_high<<32) + (u64)regvalue_tmp_low;
return 0;
}
int sent_get_sent_rate_cnt(u64 *regvalue)
{
u32 regvalue_tmp = fast_ua_hw_rd(PGM_RD_MID, SENT_RATE_CNT, MASK_1);
*regvalue = regvalue_tmp;
return 0;
}
int sent_get_sent_rate_reg(u64 *regvalue)
{
u32 regvalue_tmp = fast_ua_hw_rd(PGM_RD_MID, SENT_TIME_REG, MASK_1);
*regvalue = regvalue_tmp;
return 0;
}
int sent_get_lat_pkt_cnt(u64 *regvalue)
{
u32 regvalue_tmp = fast_ua_hw_rd(PGM_RD_MID, LAT_PKT_CNT, MASK_1);
*regvalue = regvalue_tmp;
return 0;
}
int sent_get_lat_pkt_reg(u64 *regvalue)
{
u32 regvalue_tmp = fast_ua_hw_rd(PGM_RD_MID, LAT_PKT_REG, MASK_1);
*regvalue = regvalue_tmp;
return 0;
}
int sent_get_sent_bit_cnt(u64 *regvalue)
{
u32 regvalue_tmp_high = fast_ua_hw_rd(PGM_RD_MID, SENT_BIT_CNT, MASK_1);
u32 regvalue_tmp_low = fast_ua_hw_rd(PGM_RD_MID, SENT_BIT_CNT - 1, MASK_1);
*regvalue = ((u64)regvalue_tmp_high<<32) + (u64)regvalue_tmp_low;
return 0;
}
int sent_get_sent_pkt_cnt(u64 *regvalue)
{
u32 regvalue_tmp_high = fast_ua_hw_rd(PGM_RD_MID, SENT_PKT_CNT, MASK_1);
u32 regvalue_tmp_low = fast_ua_hw_rd(PGM_RD_MID, SENT_PKT_CNT - 1, MASK_1);
*regvalue = ((u64)regvalue_tmp_high<<32) + (u64)regvalue_tmp_low;
return 0;
}
int sent_get_lat_flag(u64 *regvalue)
{
u32 regvalue_tmp = fast_ua_hw_rd(PGM_RD_MID, LAT_FLAG, MASK_1);
*regvalue = regvalue_tmp;
return 0;
}
int sent_get_rd_soft_rst(u64 *regvalue)
{
u32 regvalue_tmp = fast_ua_hw_rd(PGM_RD_MID, RD_SOFT_RST, MASK_1);
*regvalue = regvalue_tmp;
return 0;
}
int sent_get_proto_type(u64 *regvalue)
{
u32 regvalue_tmp = fast_ua_hw_rd(SCM_MID, PROTO_TYPE, MASK_1);
*regvalue = regvalue_tmp;
return 0;
}
int sent_get_scm_soft_rst(u64 *regvalue)
{
u32 regvalue_tmp = fast_ua_hw_rd(SCM_MID, SCM_SOFT_RST, MASK_1);
*regvalue = regvalue_tmp;
return 0;
}
int sent_get_n_rtt(u64 *regvalue)
{
u32 regvalue_tmp = fast_ua_hw_rd(SCM_MID, N_RTT, MASK_1);
*regvalue = regvalue_tmp;
return 0;
}
int sent_get_scm_bit_cnt(u64 *regvalue)
{
u32 regvalue_tmp_high = fast_ua_hw_rd(SCM_MID, SCM_BIT_CNT, MASK_1);
u32 regvalue_tmp_low = fast_ua_hw_rd(SCM_MID, SCM_BIT_CNT - 1, MASK_1);
*regvalue = ((u64)regvalue_tmp_high<<32) + (u64)regvalue_tmp_low;
return 0;
}
int sent_get_scm_pkt_cnt(u64 *regvalue)
{
u32 regvalue_tmp_high = fast_ua_hw_rd(SCM_MID, SCM_PKT_CNT, MASK_1);
u32 regvalue_tmp_low = fast_ua_hw_rd(SCM_MID, SCM_PKT_CNT - 1, MASK_1);
*regvalue = ((u64)regvalue_tmp_high<<32) + (u64)regvalue_tmp_low;
return 0;
}
/*---------------------------------GET REG & COUNTERS----------------------------*/

@ -0,0 +1,290 @@
#include <fast.h>
#include "include/sent_driver.h"
#include "SentSocket.h"
#define sent_MID 140
#define SCM_MID 7
#define MASK_1 0x0
#define buftime 5
int callback(struct fast_packet *pkt, int pkt_len)
{
printf("/****************************debug1*****************/\n");
print_pkt(pkt, pkt_len);
printf("/****************************debug1*****************/\n");
return 0;
}
void ua_init(u8 mid)
{
int ret = 0;
/*向系统注册自己进程处理报文模块ID为1的所有报文*/
if ((ret = fast_ua_init(mid, callback))) //UA模块实例化(输入参数1:接收模块ID号,输入参数2:接收报文的回调处理函数)
{
perror("fast_ua_init!\n");
exit(ret); //如果初始化失败,则需要打印失败信息,并将程序结束退出!
}
}
int main(int argc, char *argv[])
{
/*socket varriable*/
int server_flag = 0;
char cmd[101];
int server_fd, conn_fd, socket_ret;
struct sockaddr_in cilent;
double return_data[10];
/*obtain sent parameters*/
long long arg_sent_time,
arg_sent_rate, arg_pkt_length, arg_sent_port, proto_type = 0;
if (argc == 2 && strncmp(argv[1], "server", 6) == 0)
{
/*set socket param*/
//int params[10], para_num = 6;
server_fd = createSocket();
//unsigned char pkt[10];
bindSocket(server_fd, 8321);
setListen(server_fd);
conn_fd = acceptConn(server_fd, &cilent);
server_flag = 1;
while (1)
{
usleep(100000);
socket_ret = read(conn_fd, cmd, 9);
if (socket_ret == -1)
continue;
if (strncmp(cmd, "set_parm", 9) == 0)
{
printf("command:%s\n", cmd);
while (read(conn_fd, (char *)&arg_sent_time, sizeof(long long)) == -1)
;
arg_sent_time += 5;
while (read(conn_fd, (char *)&arg_sent_rate, sizeof(long long)) == -1)
;
while (read(conn_fd, (char *)&arg_pkt_length, sizeof(long long)) == -1)
;
while (read(conn_fd, (char *)&arg_sent_port, sizeof(long long)) == -1)
;
//while (read(conn_fd, (char *)&params, para_num * sizeof(int)) == -1);
//while (read(conn_fd, (char *)&pkt, sizeof(unsigned char) * arg_pkt_length) == -1);
break;
}
}
}
else if (argc == 5)
{
sscanf(argv[1], "%lld", &arg_sent_time);
sscanf(argv[2], "%lld", &arg_sent_rate); //this stands for Mbps
sscanf(argv[3], "%lld", &arg_pkt_length);
sscanf(argv[4], "%lld", &arg_sent_port);
}
else
{
printf("Usage1 Server for GUI\n\t:server\n");
printf("Usage2 local test:\n\t:sent_time(s) sent_rate(Mbps), pkt_length(64,1500), sent_port(0,3)\n");
return -1;
}
//arg_sent_rate = 800*arg_pkt_length/arg_sent_rate - arg_pkt_length/16;
//so the users could enter the speed rate from 1% to 100%
arg_sent_rate = (arg_pkt_length + 20) * 80 / arg_sent_rate - arg_pkt_length / 16 - 2 - 2;
if (arg_sent_time < 0 || arg_sent_port > 3 || arg_sent_port < 0 || arg_pkt_length < 60)
{
printf("invalid input!\n");
return -1;
}
/*obtain sent parameters*/
u8 dmid = sent_MID;
/**sent_parameter is used in pgm*/
struct sent_parameter demo_parameter;
struct sent_cnt demo_cnt;
struct sent_cnt *demo_cnt_p = &demo_cnt;
ua_init(sent_MID);
fast_ua_recv();
/**set test parameters*/
//demo_parameter.sent_time = 0x165a0bc00; //about 100 seconds
demo_parameter.sent_time = arg_sent_time * (100000000);
//arg_sent_time=arg_sent_time*(100000000);
//printf("the sending time is %lld", demo_parameter.sent_time);
//demo_parameter.sent_rate = 0x00001000; //about 6.5ms send a pkt
//demo_parameter.sent_rate = (arg_sent_rate>30)?arg_sent_rate:62;
demo_parameter.sent_rate = arg_sent_rate;
//demo_parameter.sent_rate = 0x59c1f1; //about sending 1000 pkts per min
demo_parameter.proto_type = 0x2; //ipv4_udp
/*************no need for these 3 parameters****************/
demo_parameter.lat_pkt = 0;
demo_parameter.lat_flag = 0; //disable latency test
demo_parameter.n_rtt = 0x0004000; //wait about 6.5ms after sending the last pkt.
/*************no need for these 3 parameters****************/
if (sent_set_test_para(demo_parameter))
{
printf("set sent parameter error!\n");
return -1;
}
struct fast_packet *pkt = (struct fast_packet *)malloc(sizeof(struct um_metadata) + arg_pkt_length);
pkt->um.flowID = 3;
pkt->um.seq = 4;
//pkt->um.outport = 1;
pkt->um.outport = arg_sent_port;
/**set priority as 3'b111 to enable sent hw pipeline*/
pkt->um.priority = 7;
pkt->um.dstmid = 1;
pkt->um.pktsrc = 1;
pkt->um.inport = 63;
pkt->um.len = sizeof(struct um_metadata) + arg_pkt_length;
int i;
//construct a packet
pkt->data[0] = 0x11;
pkt->data[1] = 0x22;
pkt->data[2] = 0x33;
pkt->data[3] = 0x44;
pkt->data[4] = 0x55;
pkt->data[5] = 0x66;
pkt->data[6] = 0x00;
pkt->data[7] = 0x21;
pkt->data[8] = 0x85;
pkt->data[9] = 0xc5;
pkt->data[10] = 0x2b;
pkt->data[11] = 0x08;
pkt->data[12] = 0x08;
pkt->data[13] = 0x00;
pkt->data[14] = 0x45;
pkt->data[15] = 0x00;
pkt->data[16] = 0x00;
pkt->data[17] = 0x3c;
pkt->data[18] = 0x79;
pkt->data[19] = 0x19;
pkt->data[20] = 0x00;
pkt->data[21] = 0x00;
pkt->data[22] = 0x40;
pkt->data[23] = 0x01;
pkt->data[24] = 0x7b;
pkt->data[25] = 0xdd;
pkt->data[26] = 0xc0;
pkt->data[27] = 0xa8;
pkt->data[28] = 0x02;
pkt->data[29] = 0x65;
pkt->data[30] = 0xc0;
pkt->data[31] = 0xa8;
pkt->data[32] = 0x02;
pkt->data[33] = 0x15;
//i;
for (i = 34; i < arg_pkt_length; i++)
{
pkt->data[i] = 0xff;
}
//send packet to trigger sent pipeline
sent_pkt_send(pkt, pkt->um.len); //trigger sent to start/
//usleep(demo_parameter.sent_time/100);
/*if(sent_collect_counters(demo_cnt_p)){
printf("test result obtaining error!\n");
return -1;
}*/
u32 time = 0;
u64 pre_time = 0, cur_time = 0, pre_bits = 0, cur_bits = 0;
while (time < arg_sent_time * 10)
{
time += 1;
if (time < 50)
{
usleep(100000);
continue;
}
if (sent_collect_counters(demo_cnt_p))
{
printf("test result obtaining error!\n");
return -1;
}
if (demo_cnt.test_time == 0)
{
if (server_flag) //end to cilent
{
return_data[2] = -1;
return_data[0] = -1;
return_data[1] = -1;
return_data[3] = -1;
write(conn_fd, (char *)&return_data, sizeof(double) * 4);
}
break;
}
/*print*/
printf("-----------------------***sent COUNTERS***-----------------------\n");
demo_cnt.sent_bits = demo_cnt.sent_bits - demo_cnt.sent_pkts * 16;
demo_cnt.recv_bits = demo_cnt.recv_bits - demo_cnt.recv_pkts * 32;
printf("Test Time:\t%llu *10ns\n", demo_cnt.test_time);
printf("Sent Pkt Bytes:\t%llu\t Bytes\n", demo_cnt.sent_bits);
printf("Sent Pkt Num:\t%llu\t\n", demo_cnt.sent_pkts);
printf("Sent Pkt Rate:\t%llf\tKpps\n", (double)(demo_cnt.sent_pkts * 100000.0 / demo_cnt.test_time));
printf("Sent Bit Rate:\t%llf\tMbps\n", (double)(demo_cnt.sent_bits * 100.0 / demo_cnt.test_time));
printf("Recv Pkt Bytes:\t%llu\t Bytes\n", demo_cnt.recv_bits);
printf("Recv Pkt Num:\t%llu\n", demo_cnt.recv_pkts);
printf("Recv Pkt Rate:\t%llf\tKpps\n", (double)(demo_cnt.recv_pkts * 100000.0 / demo_cnt.test_time));
printf("Recv Bit Rate:\t%llf\tMbps\n", (double)((demo_cnt.recv_bits * 100.0) / demo_cnt.test_time));
printf("-----------------------***sent COUNTERS***-----------------------\n");
//sent_print_counters(demo_cnt, arg_pkt_length);
//time = demo_cnt_p->test_time;
double latency = 0;
for (i = 0; i <= 1023; i += 100)
{
latency += fast_ua_hw_rd(SCM_MID, SCM_RAM_ADDR + i, MASK_1);
//usleep(1);
}
latency /= 1100000;
if (server_flag)
{
cur_time = demo_cnt.test_time - pre_time;
pre_time = demo_cnt.test_time;
cur_bits = demo_cnt.recv_bits - pre_bits;
return_data[0] = (double)(cur_bits * 100.0) / cur_time; //intime throughoutput
pre_bits = demo_cnt.recv_bits;
return_data[2] = ((double)(abs(demo_cnt.sent_pkts - demo_cnt.recv_pkts))) / demo_cnt.sent_pkts * 100; //PacketLoss
return_data[1] = latency;
return_data[3] = (double)((demo_cnt.recv_bits * 100.0) / demo_cnt.test_time); //avarger time throughoutput
write(conn_fd, (char *)&return_data, sizeof(double) * 4);
}
usleep(100000);
//usleep((10000000-time%10000000)*100);
}
/**only jump out of while if test is finished*/
while (sent_check_finish() != 0)
{
printf("the final is %d\n", 1);
sleep(1);
}
printf("test finished\n");
/**reset sent to enble next test round*/
sent_rst();
/**write letancy into file*/
import_latency_to_txt(arg_pkt_length);
closeSocket(server_fd);
closeSocket(conn_fd);
return 0;
}

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 240 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 275 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

@ -0,0 +1,21 @@
#include <QtGui/QtGui>
#include "Dlg_one.h"
#include "ui_Dlg_one.h"
Dlg_one::Dlg_one(QWidget *parent) :
QDialog(parent),
ui(new Ui::Dlg_one)
{
ui->setupUi(this);
connect(ui->buttonBox, SIGNAL(accepted()), parent, SLOT(on_buttonBox_accepted()));
}
Dlg_one::~Dlg_one()
{
delete ui;
}
void Dlg_one::on_buttonBox_accepted()
{
emit retaccept();
}

@ -0,0 +1,25 @@
#ifndef DLG_ONE_H
#define DLG_ONE_H
#include <QDialog>
namespace Ui {
class Dlg_one;
}
class Dlg_one : public QDialog
{
Q_OBJECT
public:
explicit Dlg_one(QWidget *parent = nullptr);
~Dlg_one();
private slots:
void on_buttonBox_accepted();
signals:
void retaccept();
private:
Ui::Dlg_one *ui;
};
#endif // DLG_ONE_H

@ -0,0 +1,74 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Dlg_one</class>
<widget class="QDialog" name="Dlg_one">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>347</width>
<height>300</height>
</rect>
</property>
<property name="windowTitle">
<string>Dialog</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="1">
<widget class="QLabel" name="label">
<property name="text">
<string>发送内容:</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QTextEdit" name="textEdit"/>
</item>
<item row="2" column="1">
<widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>Dlg_one</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
<x>248</x>
<y>254</y>
</hint>
<hint type="destinationlabel">
<x>157</x>
<y>274</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonBox</sender>
<signal>rejected()</signal>
<receiver>Dlg_one</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel">
<x>316</x>
<y>260</y>
</hint>
<hint type="destinationlabel">
<x>286</x>
<y>274</y>
</hint>
</hints>
</connection>
</connections>
</ui>

@ -0,0 +1,55 @@
QT += core gui
QT += widgets printsupport
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
CONFIG += c++17
# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
SOURCES += \
Dlg_one.cpp \
dlg_four.cpp \
dlg_three.cpp \
dlg_two.cpp \
main.cpp \
qcustomplot.cpp \
tcpcilent.cpp \
widget.cpp
HEADERS += \
Dlg_one.h \
dlg_four.h \
dlg_three.h \
dlg_two.h \
qcustomplot.h \
tcpcilent.h \
widget.h
FORMS += \
Dlg_one.ui \
dlg_four.ui \
dlg_three.ui \
dlg_two.ui \
widget.ui
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
QT += charts
QT += gui
RESOURCES += \
picture.qrc \
picture.qrc \
resources.qrc \
resources.qrc
DISTFILES += \
1.jpg \
3.jpg \
4.jpg \
R-C.jpg \
true.jpg

@ -0,0 +1,265 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 7.0.0, 2023-06-06T21:52:46. -->
<qtcreator>
<data>
<variable>EnvironmentId</variable>
<value type="QByteArray">{4199fbfa-1b20-496d-9fa0-62f9ab084327}</value>
</data>
<data>
<variable>ProjectExplorer.Project.ActiveTarget</variable>
<value type="qlonglong">0</value>
</data>
<data>
<variable>ProjectExplorer.Project.EditorSettings</variable>
<valuemap type="QVariantMap">
<value type="bool" key="EditorConfiguration.AutoIndent">true</value>
<value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value>
<value type="bool" key="EditorConfiguration.CamelCaseNavigation">true</value>
<valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0">
<value type="QString" key="language">Cpp</value>
<valuemap type="QVariantMap" key="value">
<value type="QByteArray" key="CurrentPreferences">CppGlobal</value>
</valuemap>
</valuemap>
<valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1">
<value type="QString" key="language">QmlJS</value>
<valuemap type="QVariantMap" key="value">
<value type="QByteArray" key="CurrentPreferences">QmlJSGlobal</value>
</valuemap>
</valuemap>
<value type="qlonglong" key="EditorConfiguration.CodeStyle.Count">2</value>
<value type="QByteArray" key="EditorConfiguration.Codec">UTF-8</value>
<value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value>
<value type="int" key="EditorConfiguration.IndentSize">4</value>
<value type="bool" key="EditorConfiguration.KeyboardTooltips">false</value>
<value type="int" key="EditorConfiguration.MarginColumn">80</value>
<value type="bool" key="EditorConfiguration.MouseHiding">true</value>
<value type="bool" key="EditorConfiguration.MouseNavigation">true</value>
<value type="int" key="EditorConfiguration.PaddingMode">1</value>
<value type="bool" key="EditorConfiguration.PreferSingleLineComments">false</value>
<value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value>
<value type="bool" key="EditorConfiguration.ShowMargin">false</value>
<value type="int" key="EditorConfiguration.SmartBackspaceBehavior">0</value>
<value type="bool" key="EditorConfiguration.SmartSelectionChanging">true</value>
<value type="bool" key="EditorConfiguration.SpacesForTabs">true</value>
<value type="int" key="EditorConfiguration.TabKeyBehavior">0</value>
<value type="int" key="EditorConfiguration.TabSize">8</value>
<value type="bool" key="EditorConfiguration.UseGlobal">true</value>
<value type="bool" key="EditorConfiguration.UseIndenter">false</value>
<value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value>
<value type="bool" key="EditorConfiguration.addFinalNewLine">true</value>
<value type="bool" key="EditorConfiguration.cleanIndentation">true</value>
<value type="bool" key="EditorConfiguration.cleanWhitespace">true</value>
<value type="QString" key="EditorConfiguration.ignoreFileTypes">*.md, *.MD, Makefile</value>
<value type="bool" key="EditorConfiguration.inEntireDocument">false</value>
<value type="bool" key="EditorConfiguration.skipTrailingWhitespace">true</value>
</valuemap>
</data>
<data>
<variable>ProjectExplorer.Project.PluginSettings</variable>
<valuemap type="QVariantMap">
<valuemap type="QVariantMap" key="AutoTest.ActiveFrameworks">
<value type="bool" key="AutoTest.Framework.Boost">true</value>
<value type="bool" key="AutoTest.Framework.CTest">false</value>
<value type="bool" key="AutoTest.Framework.Catch">true</value>
<value type="bool" key="AutoTest.Framework.GTest">true</value>
<value type="bool" key="AutoTest.Framework.QtQuickTest">true</value>
<value type="bool" key="AutoTest.Framework.QtTest">true</value>
</valuemap>
<valuemap type="QVariantMap" key="AutoTest.CheckStates"/>
<value type="int" key="AutoTest.RunAfterBuild">0</value>
<value type="bool" key="AutoTest.UseGlobal">true</value>
<valuelist type="QVariantList" key="ClangCodeModel.CustomCommandLineKey"/>
<value type="bool" key="ClangCodeModel.UseGlobalConfig">true</value>
<value type="QString" key="ClangCodeModel.WarningConfigId">Builtin.BuildSystem</value>
<valuemap type="QVariantMap" key="ClangTools">
<value type="bool" key="ClangTools.AnalyzeOpenFiles">true</value>
<value type="bool" key="ClangTools.BuildBeforeAnalysis">true</value>
<value type="QString" key="ClangTools.DiagnosticConfig">Builtin.DefaultTidyAndClazy</value>
<value type="int" key="ClangTools.ParallelJobs">8</value>
<valuelist type="QVariantList" key="ClangTools.SelectedDirs"/>
<valuelist type="QVariantList" key="ClangTools.SelectedFiles"/>
<valuelist type="QVariantList" key="ClangTools.SuppressedDiagnostics"/>
<value type="bool" key="ClangTools.UseGlobalSettings">true</value>
</valuemap>
</valuemap>
</data>
<data>
<variable>ProjectExplorer.Project.Target.0</variable>
<valuemap type="QVariantMap">
<value type="QString" key="DeviceType">Desktop</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop Qt 6.2.4 GCC 64bit</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop Qt 6.2.4 GCC 64bit</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">qt.qt6.624.gcc_64_kit</value>
<value type="qlonglong" key="ProjectExplorer.Target.ActiveBuildConfiguration">1</value>
<value type="qlonglong" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
<value type="qlonglong" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
<value type="int" key="EnableQmlDebugging">0</value>
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">/home/ghostgk/Desktop/work/project/git/fast_sent/build-GUI-Desktop_Qt_6_2_4_GCC_64bit-Debug</value>
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">/home/ghostgk/Desktop/work/project/git/fast_sent/build-GUI-Desktop_Qt_6_2_4_GCC_64bit-Debug</value>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
<valuelist type="QVariantList" key="QtProjectManager.QMakeBuildStep.SelectedAbis"/>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Build</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Clean</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
</valuemap>
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.CustomParsers"/>
<value type="bool" key="ProjectExplorer.BuildConfiguration.ParseStandardOutput">false</value>
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Debug</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1">
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">/home/ghostgk/Desktop/work/project/git/test/fast_sent/release</value>
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">/home/ghostgk/Desktop/work/project/git/test/fast_sent/release</value>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
<valuelist type="QVariantList" key="QtProjectManager.QMakeBuildStep.SelectedAbis"/>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Build</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Clean</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
</valuemap>
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.CustomParsers"/>
<value type="bool" key="ProjectExplorer.BuildConfiguration.ParseStandardOutput">false</value>
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Release</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
<value type="int" key="QtQuickCompiler">0</value>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.2">
<value type="int" key="EnableQmlDebugging">0</value>
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">/home/ghostgk/Desktop/work/project/git/fast_sent/build-GUI-Desktop_Qt_6_2_4_GCC_64bit-Profile</value>
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">/home/ghostgk/Desktop/work/project/git/fast_sent/build-GUI-Desktop_Qt_6_2_4_GCC_64bit-Profile</value>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
<valuelist type="QVariantList" key="QtProjectManager.QMakeBuildStep.SelectedAbis"/>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Build</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Clean</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
</valuemap>
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.CustomParsers"/>
<value type="bool" key="ProjectExplorer.BuildConfiguration.ParseStandardOutput">false</value>
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Profile</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
<value type="int" key="QtQuickCompiler">0</value>
<value type="int" key="SeparateDebugInfo">0</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.Target.BuildConfigurationCount">3</value>
<valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">0</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Deploy</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value>
</valuemap>
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value>
<valuemap type="QVariantMap" key="ProjectExplorer.DeployConfiguration.CustomData"/>
<value type="bool" key="ProjectExplorer.DeployConfiguration.CustomDataEnabled">false</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.Target.DeployConfigurationCount">1</value>
<valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0">
<value type="bool" key="Analyzer.Perf.Settings.UseGlobalSettings">true</value>
<value type="bool" key="Analyzer.QmlProfiler.Settings.UseGlobalSettings">true</value>
<value type="bool" key="Analyzer.Valgrind.Settings.UseGlobalSettings">true</value>
<valuelist type="QVariantList" key="CustomOutputParsers"/>
<value type="int" key="PE.EnvironmentAspect.Base">2</value>
<valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:/home/ghostgk/Desktop/work/project/git/test/fast_sent/GUI/GUI.pro</value>
<value type="QString" key="ProjectExplorer.RunConfiguration.BuildKey">/home/ghostgk/Desktop/work/project/git/test/fast_sent/GUI/GUI.pro</value>
<value type="bool" key="RunConfiguration.UseCppDebugger">false</value>
<value type="bool" key="RunConfiguration.UseCppDebuggerAuto">true</value>
<value type="bool" key="RunConfiguration.UseLibrarySearchPath">true</value>
<value type="bool" key="RunConfiguration.UseQmlDebugger">false</value>
<value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value>
<value type="QString" key="RunConfiguration.WorkingDirectory.default">/home/ghostgk/Desktop/work/project/git/test/fast_sent/release</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.Target.RunConfigurationCount">1</value>
</valuemap>
</data>
<data>
<variable>ProjectExplorer.Project.TargetCount</variable>
<value type="qlonglong">1</value>
</data>
<data>
<variable>ProjectExplorer.Project.Updater.FileVersion</variable>
<value type="int">22</value>
</data>
<data>
<variable>Version</variable>
<value type="int">22</value>
</data>
</qtcreator>

@ -0,0 +1,265 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 7.0.2, 2022-06-21T21:29:03. -->
<qtcreator>
<data>
<variable>EnvironmentId</variable>
<value type="QByteArray">{3b7e8319-7435-4826-87cb-251deaaf1196}</value>
</data>
<data>
<variable>ProjectExplorer.Project.ActiveTarget</variable>
<value type="qlonglong">0</value>
</data>
<data>
<variable>ProjectExplorer.Project.EditorSettings</variable>
<valuemap type="QVariantMap">
<value type="bool" key="EditorConfiguration.AutoIndent">true</value>
<value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value>
<value type="bool" key="EditorConfiguration.CamelCaseNavigation">true</value>
<valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0">
<value type="QString" key="language">Cpp</value>
<valuemap type="QVariantMap" key="value">
<value type="QByteArray" key="CurrentPreferences">CppGlobal</value>
</valuemap>
</valuemap>
<valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1">
<value type="QString" key="language">QmlJS</value>
<valuemap type="QVariantMap" key="value">
<value type="QByteArray" key="CurrentPreferences">QmlJSGlobal</value>
</valuemap>
</valuemap>
<value type="qlonglong" key="EditorConfiguration.CodeStyle.Count">2</value>
<value type="QByteArray" key="EditorConfiguration.Codec">UTF-8</value>
<value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value>
<value type="int" key="EditorConfiguration.IndentSize">4</value>
<value type="bool" key="EditorConfiguration.KeyboardTooltips">false</value>
<value type="int" key="EditorConfiguration.MarginColumn">80</value>
<value type="bool" key="EditorConfiguration.MouseHiding">true</value>
<value type="bool" key="EditorConfiguration.MouseNavigation">true</value>
<value type="int" key="EditorConfiguration.PaddingMode">1</value>
<value type="bool" key="EditorConfiguration.PreferSingleLineComments">false</value>
<value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value>
<value type="bool" key="EditorConfiguration.ShowMargin">false</value>
<value type="int" key="EditorConfiguration.SmartBackspaceBehavior">0</value>
<value type="bool" key="EditorConfiguration.SmartSelectionChanging">true</value>
<value type="bool" key="EditorConfiguration.SpacesForTabs">true</value>
<value type="int" key="EditorConfiguration.TabKeyBehavior">0</value>
<value type="int" key="EditorConfiguration.TabSize">8</value>
<value type="bool" key="EditorConfiguration.UseGlobal">true</value>
<value type="bool" key="EditorConfiguration.UseIndenter">false</value>
<value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value>
<value type="bool" key="EditorConfiguration.addFinalNewLine">true</value>
<value type="bool" key="EditorConfiguration.cleanIndentation">true</value>
<value type="bool" key="EditorConfiguration.cleanWhitespace">true</value>
<value type="QString" key="EditorConfiguration.ignoreFileTypes">*.md, *.MD, Makefile</value>
<value type="bool" key="EditorConfiguration.inEntireDocument">false</value>
<value type="bool" key="EditorConfiguration.skipTrailingWhitespace">true</value>
</valuemap>
</data>
<data>
<variable>ProjectExplorer.Project.PluginSettings</variable>
<valuemap type="QVariantMap">
<valuemap type="QVariantMap" key="AutoTest.ActiveFrameworks">
<value type="bool" key="AutoTest.Framework.Boost">true</value>
<value type="bool" key="AutoTest.Framework.CTest">false</value>
<value type="bool" key="AutoTest.Framework.Catch">true</value>
<value type="bool" key="AutoTest.Framework.GTest">true</value>
<value type="bool" key="AutoTest.Framework.QtQuickTest">true</value>
<value type="bool" key="AutoTest.Framework.QtTest">true</value>
</valuemap>
<valuemap type="QVariantMap" key="AutoTest.CheckStates"/>
<value type="int" key="AutoTest.RunAfterBuild">0</value>
<value type="bool" key="AutoTest.UseGlobal">true</value>
<valuelist type="QVariantList" key="ClangCodeModel.CustomCommandLineKey"/>
<value type="bool" key="ClangCodeModel.UseGlobalConfig">true</value>
<value type="QString" key="ClangCodeModel.WarningConfigId">Builtin.BuildSystem</value>
<valuemap type="QVariantMap" key="ClangTools">
<value type="bool" key="ClangTools.AnalyzeOpenFiles">true</value>
<value type="bool" key="ClangTools.BuildBeforeAnalysis">true</value>
<value type="QString" key="ClangTools.DiagnosticConfig">Builtin.DefaultTidyAndClazy</value>
<value type="int" key="ClangTools.ParallelJobs">4</value>
<valuelist type="QVariantList" key="ClangTools.SelectedDirs"/>
<valuelist type="QVariantList" key="ClangTools.SelectedFiles"/>
<valuelist type="QVariantList" key="ClangTools.SuppressedDiagnostics"/>
<value type="bool" key="ClangTools.UseGlobalSettings">true</value>
</valuemap>
</valuemap>
</data>
<data>
<variable>ProjectExplorer.Project.Target.0</variable>
<valuemap type="QVariantMap">
<value type="QString" key="DeviceType">Desktop</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop Qt 6.2.4 GCC 64bit</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop Qt 6.2.4 GCC 64bit</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">qt.qt6.624.gcc_64_kit</value>
<value type="qlonglong" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value>
<value type="qlonglong" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
<value type="qlonglong" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
<value type="int" key="EnableQmlDebugging">0</value>
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">/mnt/hgfs/share/build-GUI-Desktop_Qt_6_2_4_GCC_64bit-Debug</value>
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">/mnt/hgfs/share/build-GUI-Desktop_Qt_6_2_4_GCC_64bit-Debug</value>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
<valuelist type="QVariantList" key="QtProjectManager.QMakeBuildStep.SelectedAbis"/>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Build</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Clean</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
</valuemap>
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.CustomParsers"/>
<value type="bool" key="ProjectExplorer.BuildConfiguration.ParseStandardOutput">false</value>
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Debug</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1">
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">/mnt/hgfs/share/build-GUI-Desktop_Qt_6_2_4_GCC_64bit-Release</value>
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">/mnt/hgfs/share/build-GUI-Desktop_Qt_6_2_4_GCC_64bit-Release</value>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
<valuelist type="QVariantList" key="QtProjectManager.QMakeBuildStep.SelectedAbis"/>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Build</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Clean</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
</valuemap>
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.CustomParsers"/>
<value type="bool" key="ProjectExplorer.BuildConfiguration.ParseStandardOutput">false</value>
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Release</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
<value type="int" key="QtQuickCompiler">0</value>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.2">
<value type="int" key="EnableQmlDebugging">0</value>
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">/mnt/hgfs/share/build-GUI-Desktop_Qt_6_2_4_GCC_64bit-Profile</value>
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">/mnt/hgfs/share/build-GUI-Desktop_Qt_6_2_4_GCC_64bit-Profile</value>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
<valuelist type="QVariantList" key="QtProjectManager.QMakeBuildStep.SelectedAbis"/>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Build</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Clean</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
</valuemap>
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.CustomParsers"/>
<value type="bool" key="ProjectExplorer.BuildConfiguration.ParseStandardOutput">false</value>
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Profile</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
<value type="int" key="QtQuickCompiler">0</value>
<value type="int" key="SeparateDebugInfo">0</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.Target.BuildConfigurationCount">3</value>
<valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">0</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Deploy</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value>
</valuemap>
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value>
<valuemap type="QVariantMap" key="ProjectExplorer.DeployConfiguration.CustomData"/>
<value type="bool" key="ProjectExplorer.DeployConfiguration.CustomDataEnabled">false</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.Target.DeployConfigurationCount">1</value>
<valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0">
<value type="bool" key="Analyzer.Perf.Settings.UseGlobalSettings">true</value>
<value type="bool" key="Analyzer.QmlProfiler.Settings.UseGlobalSettings">true</value>
<value type="bool" key="Analyzer.Valgrind.Settings.UseGlobalSettings">true</value>
<valuelist type="QVariantList" key="CustomOutputParsers"/>
<value type="int" key="PE.EnvironmentAspect.Base">2</value>
<valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:/mnt/hgfs/share/GUI/GUI.pro</value>
<value type="QString" key="ProjectExplorer.RunConfiguration.BuildKey">/mnt/hgfs/share/GUI/GUI.pro</value>
<value type="bool" key="RunConfiguration.UseCppDebugger">false</value>
<value type="bool" key="RunConfiguration.UseCppDebuggerAuto">true</value>
<value type="bool" key="RunConfiguration.UseLibrarySearchPath">true</value>
<value type="bool" key="RunConfiguration.UseQmlDebugger">false</value>
<value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value>
<value type="QString" key="RunConfiguration.WorkingDirectory.default">/mnt/hgfs/share/build-GUI-Desktop_Qt_6_2_4_GCC_64bit-Debug</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.Target.RunConfigurationCount">1</value>
</valuemap>
</data>
<data>
<variable>ProjectExplorer.Project.TargetCount</variable>
<value type="qlonglong">1</value>
</data>
<data>
<variable>ProjectExplorer.Project.Updater.FileVersion</variable>
<value type="int">22</value>
</data>
<data>
<variable>Version</variable>
<value type="int">22</value>
</data>
</qtcreator>

@ -0,0 +1,263 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 7.0.0, 2022-06-14T10:08:42. -->
<qtcreator>
<data>
<variable>EnvironmentId</variable>
<value type="QByteArray">{4199fbfa-1b20-496d-9fa0-62f9ab084327}</value>
</data>
<data>
<variable>ProjectExplorer.Project.ActiveTarget</variable>
<value type="qlonglong">0</value>
</data>
<data>
<variable>ProjectExplorer.Project.EditorSettings</variable>
<valuemap type="QVariantMap">
<value type="bool" key="EditorConfiguration.AutoIndent">true</value>
<value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value>
<value type="bool" key="EditorConfiguration.CamelCaseNavigation">true</value>
<valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0">
<value type="QString" key="language">Cpp</value>
<valuemap type="QVariantMap" key="value">
<value type="QByteArray" key="CurrentPreferences">CppGlobal</value>
</valuemap>
</valuemap>
<valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1">
<value type="QString" key="language">QmlJS</value>
<valuemap type="QVariantMap" key="value">
<value type="QByteArray" key="CurrentPreferences">QmlJSGlobal</value>
</valuemap>
</valuemap>
<value type="qlonglong" key="EditorConfiguration.CodeStyle.Count">2</value>
<value type="QByteArray" key="EditorConfiguration.Codec">UTF-8</value>
<value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value>
<value type="int" key="EditorConfiguration.IndentSize">4</value>
<value type="bool" key="EditorConfiguration.KeyboardTooltips">false</value>
<value type="int" key="EditorConfiguration.MarginColumn">80</value>
<value type="bool" key="EditorConfiguration.MouseHiding">true</value>
<value type="bool" key="EditorConfiguration.MouseNavigation">true</value>
<value type="int" key="EditorConfiguration.PaddingMode">1</value>
<value type="bool" key="EditorConfiguration.PreferSingleLineComments">false</value>
<value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value>
<value type="bool" key="EditorConfiguration.ShowMargin">false</value>
<value type="int" key="EditorConfiguration.SmartBackspaceBehavior">0</value>
<value type="bool" key="EditorConfiguration.SmartSelectionChanging">true</value>
<value type="bool" key="EditorConfiguration.SpacesForTabs">true</value>
<value type="int" key="EditorConfiguration.TabKeyBehavior">0</value>
<value type="int" key="EditorConfiguration.TabSize">8</value>
<value type="bool" key="EditorConfiguration.UseGlobal">true</value>
<value type="bool" key="EditorConfiguration.UseIndenter">false</value>
<value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value>
<value type="bool" key="EditorConfiguration.addFinalNewLine">true</value>
<value type="bool" key="EditorConfiguration.cleanIndentation">true</value>
<value type="bool" key="EditorConfiguration.cleanWhitespace">true</value>
<value type="QString" key="EditorConfiguration.ignoreFileTypes">*.md, *.MD, Makefile</value>
<value type="bool" key="EditorConfiguration.inEntireDocument">false</value>
<value type="bool" key="EditorConfiguration.skipTrailingWhitespace">true</value>
</valuemap>
</data>
<data>
<variable>ProjectExplorer.Project.PluginSettings</variable>
<valuemap type="QVariantMap">
<valuemap type="QVariantMap" key="AutoTest.ActiveFrameworks">
<value type="bool" key="AutoTest.Framework.Boost">true</value>
<value type="bool" key="AutoTest.Framework.CTest">false</value>
<value type="bool" key="AutoTest.Framework.Catch">true</value>
<value type="bool" key="AutoTest.Framework.GTest">true</value>
<value type="bool" key="AutoTest.Framework.QtQuickTest">true</value>
<value type="bool" key="AutoTest.Framework.QtTest">true</value>
</valuemap>
<valuemap type="QVariantMap" key="AutoTest.CheckStates"/>
<value type="int" key="AutoTest.RunAfterBuild">0</value>
<value type="bool" key="AutoTest.UseGlobal">true</value>
<valuelist type="QVariantList" key="ClangCodeModel.CustomCommandLineKey"/>
<value type="bool" key="ClangCodeModel.UseGlobalConfig">true</value>
<value type="QString" key="ClangCodeModel.WarningConfigId">Builtin.BuildSystem</value>
<valuemap type="QVariantMap" key="ClangTools">
<value type="bool" key="ClangTools.AnalyzeOpenFiles">true</value>
<value type="bool" key="ClangTools.BuildBeforeAnalysis">true</value>
<value type="QString" key="ClangTools.DiagnosticConfig">Builtin.DefaultTidyAndClazy</value>
<value type="int" key="ClangTools.ParallelJobs">8</value>
<valuelist type="QVariantList" key="ClangTools.SelectedDirs"/>
<valuelist type="QVariantList" key="ClangTools.SelectedFiles"/>
<valuelist type="QVariantList" key="ClangTools.SuppressedDiagnostics"/>
<value type="bool" key="ClangTools.UseGlobalSettings">true</value>
</valuemap>
</valuemap>
</data>
<data>
<variable>ProjectExplorer.Project.Target.0</variable>
<valuemap type="QVariantMap">
<value type="QString" key="DeviceType">Desktop</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop Qt 6.2.4 GCC 64bit</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop Qt 6.2.4 GCC 64bit</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">qt.qt6.624.gcc_64_kit</value>
<value type="qlonglong" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value>
<value type="qlonglong" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
<value type="qlonglong" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
<value type="int" key="EnableQmlDebugging">0</value>
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">/home/ghostgk/Desktop/work/project/git/fast_sent/build-GUI-Desktop_Qt_6_2_4_GCC_64bit-Debug</value>
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">/home/ghostgk/Desktop/work/project/git/fast_sent/build-GUI-Desktop_Qt_6_2_4_GCC_64bit-Debug</value>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
<valuelist type="QVariantList" key="QtProjectManager.QMakeBuildStep.SelectedAbis"/>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Build</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Clean</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
</valuemap>
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.CustomParsers"/>
<value type="bool" key="ProjectExplorer.BuildConfiguration.ParseStandardOutput">false</value>
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Debug</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1">
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">/home/ghostgk/Desktop/work/project/git/fast_sent/build-GUI-Desktop_Qt_6_2_4_GCC_64bit-Release</value>
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">/home/ghostgk/Desktop/work/project/git/fast_sent/build-GUI-Desktop_Qt_6_2_4_GCC_64bit-Release</value>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
<valuelist type="QVariantList" key="QtProjectManager.QMakeBuildStep.SelectedAbis"/>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Build</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Clean</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
</valuemap>
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.CustomParsers"/>
<value type="bool" key="ProjectExplorer.BuildConfiguration.ParseStandardOutput">false</value>
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Release</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
<value type="int" key="QtQuickCompiler">0</value>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.2">
<value type="int" key="EnableQmlDebugging">0</value>
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">/home/ghostgk/Desktop/work/project/git/fast_sent/build-GUI-Desktop_Qt_6_2_4_GCC_64bit-Profile</value>
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">/home/ghostgk/Desktop/work/project/git/fast_sent/build-GUI-Desktop_Qt_6_2_4_GCC_64bit-Profile</value>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
<valuelist type="QVariantList" key="QtProjectManager.QMakeBuildStep.SelectedAbis"/>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Build</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Clean</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
</valuemap>
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.CustomParsers"/>
<value type="bool" key="ProjectExplorer.BuildConfiguration.ParseStandardOutput">false</value>
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Profile</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
<value type="int" key="QtQuickCompiler">0</value>
<value type="int" key="SeparateDebugInfo">0</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.Target.BuildConfigurationCount">3</value>
<valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">0</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Deploy</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value>
</valuemap>
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value>
<valuemap type="QVariantMap" key="ProjectExplorer.DeployConfiguration.CustomData"/>
<value type="bool" key="ProjectExplorer.DeployConfiguration.CustomDataEnabled">false</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.Target.DeployConfigurationCount">1</value>
<valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0">
<value type="bool" key="Analyzer.Perf.Settings.UseGlobalSettings">true</value>
<value type="bool" key="Analyzer.QmlProfiler.Settings.UseGlobalSettings">true</value>
<value type="bool" key="Analyzer.Valgrind.Settings.UseGlobalSettings">true</value>
<valuelist type="QVariantList" key="CustomOutputParsers"/>
<value type="int" key="PE.EnvironmentAspect.Base">2</value>
<valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.CustomExecutableRunConfiguration</value>
<value type="QString" key="ProjectExplorer.RunConfiguration.BuildKey"></value>
<value type="bool" key="RunConfiguration.UseCppDebugger">false</value>
<value type="bool" key="RunConfiguration.UseCppDebuggerAuto">true</value>
<value type="bool" key="RunConfiguration.UseQmlDebugger">false</value>
<value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.Target.RunConfigurationCount">1</value>
</valuemap>
</data>
<data>
<variable>ProjectExplorer.Project.TargetCount</variable>
<value type="qlonglong">1</value>
</data>
<data>
<variable>ProjectExplorer.Project.Updater.FileVersion</variable>
<value type="int">22</value>
</data>
<data>
<variable>Version</variable>
<value type="int">22</value>
</data>
</qtcreator>

@ -0,0 +1,284 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 7.0.0, 2022-06-21T21:52:33. -->
<qtcreator>
<data>
<variable>EnvironmentId</variable>
<value type="QByteArray">{a5f9c713-e157-46a5-b48c-c12379683f94}</value>
</data>
<data>
<variable>ProjectExplorer.Project.ActiveTarget</variable>
<value type="qlonglong">0</value>
</data>
<data>
<variable>ProjectExplorer.Project.EditorSettings</variable>
<valuemap type="QVariantMap">
<value type="bool" key="EditorConfiguration.AutoIndent">true</value>
<value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value>
<value type="bool" key="EditorConfiguration.CamelCaseNavigation">true</value>
<valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0">
<value type="QString" key="language">Cpp</value>
<valuemap type="QVariantMap" key="value">
<value type="QByteArray" key="CurrentPreferences">CppGlobal</value>
</valuemap>
</valuemap>
<valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1">
<value type="QString" key="language">QmlJS</value>
<valuemap type="QVariantMap" key="value">
<value type="QByteArray" key="CurrentPreferences">QmlJSGlobal</value>
</valuemap>
</valuemap>
<value type="qlonglong" key="EditorConfiguration.CodeStyle.Count">2</value>
<value type="QByteArray" key="EditorConfiguration.Codec">UTF-8</value>
<value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value>
<value type="int" key="EditorConfiguration.IndentSize">4</value>
<value type="bool" key="EditorConfiguration.KeyboardTooltips">false</value>
<value type="int" key="EditorConfiguration.MarginColumn">80</value>
<value type="bool" key="EditorConfiguration.MouseHiding">true</value>
<value type="bool" key="EditorConfiguration.MouseNavigation">true</value>
<value type="int" key="EditorConfiguration.PaddingMode">1</value>
<value type="bool" key="EditorConfiguration.PreferSingleLineComments">false</value>
<value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value>
<value type="bool" key="EditorConfiguration.ShowMargin">false</value>
<value type="int" key="EditorConfiguration.SmartBackspaceBehavior">0</value>
<value type="bool" key="EditorConfiguration.SmartSelectionChanging">true</value>
<value type="bool" key="EditorConfiguration.SpacesForTabs">true</value>
<value type="int" key="EditorConfiguration.TabKeyBehavior">0</value>
<value type="int" key="EditorConfiguration.TabSize">8</value>
<value type="bool" key="EditorConfiguration.UseGlobal">true</value>
<value type="bool" key="EditorConfiguration.UseIndenter">false</value>
<value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value>
<value type="bool" key="EditorConfiguration.addFinalNewLine">true</value>
<value type="bool" key="EditorConfiguration.cleanIndentation">true</value>
<value type="bool" key="EditorConfiguration.cleanWhitespace">true</value>
<value type="QString" key="EditorConfiguration.ignoreFileTypes">*.md, *.MD, Makefile</value>
<value type="bool" key="EditorConfiguration.inEntireDocument">false</value>
<value type="bool" key="EditorConfiguration.skipTrailingWhitespace">true</value>
</valuemap>
</data>
<data>
<variable>ProjectExplorer.Project.PluginSettings</variable>
<valuemap type="QVariantMap">
<valuemap type="QVariantMap" key="AutoTest.ActiveFrameworks">
<value type="bool" key="AutoTest.Framework.Boost">true</value>
<value type="bool" key="AutoTest.Framework.CTest">false</value>
<value type="bool" key="AutoTest.Framework.Catch">true</value>
<value type="bool" key="AutoTest.Framework.GTest">true</value>
<value type="bool" key="AutoTest.Framework.QtQuickTest">true</value>
<value type="bool" key="AutoTest.Framework.QtTest">true</value>
</valuemap>
<valuemap type="QVariantMap" key="AutoTest.CheckStates"/>
<value type="int" key="AutoTest.RunAfterBuild">0</value>
<value type="bool" key="AutoTest.UseGlobal">true</value>
<valuelist type="QVariantList" key="ClangCodeModel.CustomCommandLineKey">
<value type="QString">-fno-delayed-template-parsing</value>
</valuelist>
<value type="bool" key="ClangCodeModel.UseGlobalConfig">true</value>
<value type="QString" key="ClangCodeModel.WarningConfigId">Builtin.BuildSystem</value>
<valuemap type="QVariantMap" key="ClangTools">
<value type="bool" key="ClangTools.AnalyzeOpenFiles">true</value>
<value type="bool" key="ClangTools.BuildBeforeAnalysis">true</value>
<value type="QString" key="ClangTools.DiagnosticConfig">Builtin.DefaultTidyAndClazy</value>
<value type="int" key="ClangTools.ParallelJobs">6</value>
<valuelist type="QVariantList" key="ClangTools.SelectedDirs"/>
<valuelist type="QVariantList" key="ClangTools.SelectedFiles"/>
<valuelist type="QVariantList" key="ClangTools.SuppressedDiagnostics"/>
<value type="bool" key="ClangTools.UseGlobalSettings">true</value>
</valuemap>
</valuemap>
</data>
<data>
<variable>ProjectExplorer.Project.Target.0</variable>
<valuemap type="QVariantMap">
<value type="QString" key="DeviceType">Desktop</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop Qt 6.2.4 MSVC2019 64bit</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop Qt 6.2.4 MSVC2019 64bit</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">qt.qt6.624.win64_msvc2019_64_kit</value>
<value type="qlonglong" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value>
<value type="qlonglong" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
<value type="qlonglong" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
<value type="int" key="EnableQmlDebugging">0</value>
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">F:\share\build-GUI-Desktop_Qt_6_2_4_MSVC2019_64bit-Debug</value>
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">F:/share/build-GUI-Desktop_Qt_6_2_4_MSVC2019_64bit-Debug</value>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
<valuelist type="QVariantList" key="QtProjectManager.QMakeBuildStep.SelectedAbis"/>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Build</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Clean</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
</valuemap>
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.CustomParsers"/>
<value type="bool" key="ProjectExplorer.BuildConfiguration.ParseStandardOutput">false</value>
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Debug</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1">
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">F:\share\build-GUI-Desktop_Qt_6_2_4_MSVC2019_64bit-Release</value>
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">F:/share/build-GUI-Desktop_Qt_6_2_4_MSVC2019_64bit-Release</value>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
<valuelist type="QVariantList" key="QtProjectManager.QMakeBuildStep.SelectedAbis"/>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Build</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Clean</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
</valuemap>
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.CustomParsers"/>
<value type="bool" key="ProjectExplorer.BuildConfiguration.ParseStandardOutput">false</value>
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Release</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
<value type="int" key="QtQuickCompiler">0</value>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.2">
<value type="int" key="EnableQmlDebugging">0</value>
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">F:\share\build-GUI-Desktop_Qt_6_2_4_MSVC2019_64bit-Profile</value>
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">F:/share/build-GUI-Desktop_Qt_6_2_4_MSVC2019_64bit-Profile</value>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
<valuelist type="QVariantList" key="QtProjectManager.QMakeBuildStep.SelectedAbis"/>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Build</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Clean</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
</valuemap>
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.CustomParsers"/>
<value type="bool" key="ProjectExplorer.BuildConfiguration.ParseStandardOutput">false</value>
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Profile</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
<value type="int" key="QtQuickCompiler">0</value>
<value type="int" key="SeparateDebugInfo">0</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.Target.BuildConfigurationCount">3</value>
<valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">0</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Deploy</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value>
</valuemap>
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value>
<valuemap type="QVariantMap" key="ProjectExplorer.DeployConfiguration.CustomData"/>
<value type="bool" key="ProjectExplorer.DeployConfiguration.CustomDataEnabled">false</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.Target.DeployConfigurationCount">1</value>
<valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0">
<value type="bool" key="Analyzer.Perf.Settings.UseGlobalSettings">true</value>
<value type="bool" key="Analyzer.QmlProfiler.Settings.UseGlobalSettings">true</value>
<value type="bool" key="Analyzer.Valgrind.Settings.UseGlobalSettings">true</value>
<valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds">
<value type="QString">0</value>
<value type="QString">1</value>
<value type="QString">2</value>
<value type="QString">3</value>
<value type="QString">4</value>
<value type="QString">5</value>
<value type="QString">6</value>
<value type="QString">7</value>
<value type="QString">8</value>
<value type="QString">9</value>
<value type="QString">10</value>
<value type="QString">11</value>
<value type="QString">12</value>
<value type="QString">13</value>
<value type="QString">14</value>
</valuelist>
<valuelist type="QVariantList" key="CustomOutputParsers"/>
<value type="int" key="PE.EnvironmentAspect.Base">2</value>
<valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:F:/share/GUI/GUI.pro</value>
<value type="QString" key="ProjectExplorer.RunConfiguration.BuildKey">F:/share/GUI/GUI.pro</value>
<value type="bool" key="RunConfiguration.UseCppDebugger">false</value>
<value type="bool" key="RunConfiguration.UseCppDebuggerAuto">true</value>
<value type="bool" key="RunConfiguration.UseLibrarySearchPath">true</value>
<value type="bool" key="RunConfiguration.UseQmlDebugger">false</value>
<value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value>
<value type="QString" key="RunConfiguration.WorkingDirectory.default">F:/share/build-GUI-Desktop_Qt_6_2_4_MSVC2019_64bit-Debug</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.Target.RunConfigurationCount">1</value>
</valuemap>
</data>
<data>
<variable>ProjectExplorer.Project.TargetCount</variable>
<value type="qlonglong">1</value>
</data>
<data>
<variable>ProjectExplorer.Project.Updater.FileVersion</variable>
<value type="int">22</value>
</data>
<data>
<variable>Version</variable>
<value type="int">22</value>
</data>
</qtcreator>

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

@ -0,0 +1,188 @@
#ifndef SMOOTHCURVEGENERATOR_H
#define SMOOTHCURVEGENERATOR_H
class SmoothCurveGenerator // 这段代码是根据狗哥的代码 修改来的 已经验证了
{
protected:
static QPainterPath generateSmoothCurveImp(const QVector<QPointF> &points)
{
QPainterPath path;
int len = points.size();
if (len < 2) {
return path;
}
QVector<QPointF> firstControlPoints;
QVector<QPointF> secondControlPoints;
calculateControlPoints(points, &firstControlPoints,
&secondControlPoints);
path.moveTo(points[0].x(), points[0].y());
// Using bezier curve to generate a smooth curve.
for (int i = 0; i < len - 1; ++i) {
path.cubicTo(firstControlPoints[i], secondControlPoints[i],
points[i + 1]);
}
return path;
}
public:
static QPainterPath generateSmoothCurve(const QVector<QPointF> &points)
{
QPainterPath result;
int segmentStart = 0;
int i = 0;
int pointSize = points.size();
while (i < pointSize) {
if (qIsNaN(points.at(i).y()) || qIsNaN(points.at(i).x()) ||
qIsInf(points.at(i).y())) {
// QVector<QPointF>
// lineData(QVector<QPointF>(points.constBegin() +
// segmentStart, points.constBegin() + i - segmentStart));
QVector<QPointF> lineData(i - segmentStart);
std::copy(points.constBegin() + segmentStart,
points.constBegin() + i - segmentStart,
lineData.begin()); // 报错的地方 修改成上面的代码 。
result.addPath(generateSmoothCurveImp(lineData));
segmentStart = i + 1;
}
++i;
}
// QVector<QPointF> lineData(QVector<QPointF>(points.constBegin() +
// segmentStart, points.constEnd()));
QVector<QPointF> lineData(i - segmentStart);
std::copy(points.constBegin() + segmentStart,
points.constBegin() + i - segmentStart, lineData.begin());
result.addPath(generateSmoothCurveImp(lineData));
return result;
}
static QPainterPath generateSmoothCurve(const QPainterPath &basePath,
const QVector<QPointF> &points)
{
if (points.isEmpty()) return basePath;
QPainterPath path = basePath;
int len = points.size();
if (len == 1) {
path.lineTo(points.at(0));
return path;
}
QVector<QPointF> firstControlPoints;
QVector<QPointF> secondControlPoints;
calculateControlPoints(points, &firstControlPoints,
&secondControlPoints);
path.lineTo(points.at(0));
for (int i = 0; i < len - 1; ++i)
path.cubicTo(firstControlPoints[i], secondControlPoints[i],
points[i + 1]);
return path;
}
static void calculateFirstControlPoints(double *&result, const double *rhs,
int n)
{
result = new double[n];
double *tmp = new double[n];
double b = 2.0;
result[0] = rhs[0] / b;
// Decomposition and forward substitution.
for (int i = 1; i < n; i++) {
tmp[i] = 1 / b;
b = (i < n - 1 ? 4.0 : 3.5) - tmp[i];
result[i] = (rhs[i] - result[i - 1]) / b;
}
for (int i = 1; i < n; i++) {
result[n - i - 1] -=
tmp[n - i] * result[n - i]; // Backsubstitution.
}
delete[] tmp;
}
static void calculateControlPoints(const QVector<QPointF> &knots,
QVector<QPointF> *firstControlPoints,
QVector<QPointF> *secondControlPoints)
{
int n = knots.size() - 1;
firstControlPoints->reserve(n);
secondControlPoints->reserve(n);
for (int i = 0; i < n; ++i) {
firstControlPoints->append(QPointF());
secondControlPoints->append(QPointF());
}
if (n == 1) {
// Special case: Bezier curve should be a straight line.
// P1 = (2P0 + P3) / 3
(*firstControlPoints)[0].rx() =
(2 * knots[0].x() + knots[1].x()) / 3;
(*firstControlPoints)[0].ry() =
(2 * knots[0].y() + knots[1].y()) / 3;
// P2 = 2P1 P0
(*secondControlPoints)[0].rx() =
2 * (*firstControlPoints)[0].x() - knots[0].x();
(*secondControlPoints)[0].ry() =
2 * (*firstControlPoints)[0].y() - knots[0].y();
return;
}
// Calculate first Bezier control points
double *xs = nullptr;
double *ys = nullptr;
double *rhsx = new double[n]; // Right hand side vector
double *rhsy = new double[n]; // Right hand side vector
// Set right hand side values
for (int i = 1; i < n - 1; ++i) {
rhsx[i] = 4 * knots[i].x() + 2 * knots[i + 1].x();
rhsy[i] = 4 * knots[i].y() + 2 * knots[i + 1].y();
}
rhsx[0] = knots[0].x() + 2 * knots[1].x();
rhsx[n - 1] = (8 * knots[n - 1].x() + knots[n].x()) / 2.0;
rhsy[0] = knots[0].y() + 2 * knots[1].y();
rhsy[n - 1] = (8 * knots[n - 1].y() + knots[n].y()) / 2.0;
// Calculate first control points coordinates
calculateFirstControlPoints(xs, rhsx, n);
calculateFirstControlPoints(ys, rhsy, n);
// Fill output control points.
for (int i = 0; i < n; ++i) {
(*firstControlPoints)[i].rx() = xs[i];
(*firstControlPoints)[i].ry() = ys[i];
if (i < n - 1) {
(*secondControlPoints)[i].rx() =
2 * knots[i + 1].x() - xs[i + 1];
(*secondControlPoints)[i].ry() =
2 * knots[i + 1].y() - ys[i + 1];
} else {
(*secondControlPoints)[i].rx() = (knots[n].x() + xs[n - 1]) / 2;
(*secondControlPoints)[i].ry() = (knots[n].y() + ys[n - 1]) / 2;
}
}
delete xs;
delete ys;
delete[] rhsx;
delete[] rhsy;
}
};
CSDN CC 4.0 BY -
SA https
: // blog.csdn.net/weixin_39328406/article/details/112183162
#endif // SMOOTHCURVEGENERATOR_H

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>dlg_four</class>
<widget class="QDialog" name="dlg_four">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
</rect>
</property>
<property name="windowTitle">
<string>Dialog</string>
</property>
</widget>
<resources/>
<connections/>
</ui>

@ -0,0 +1,14 @@
#include "dlg_four.h"
#include "ui_dlg_four.h"
Dlg_four::Dlg_four(QWidget *parent) :
QDialog(parent),
ui(new Ui::Dlg_four)
{
ui->setupUi(this);
}
Dlg_four::~Dlg_four()
{
delete ui;
}

@ -0,0 +1,21 @@
#ifndef DLG_FOUR_H
#define DLG_FOUR_H
#include <QDialog>
namespace Ui {
class Dlg_four;
}
class Dlg_four : public QDialog
{
Q_OBJECT
public:
explicit Dlg_four(QWidget *parent = nullptr);
~Dlg_four();
private:
Ui::Dlg_four *ui;
};
#endif // DLG_FOUR_H

@ -0,0 +1,100 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Dlg_four</class>
<widget class="QDialog" name="Dlg_four">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>248</width>
<height>211</height>
</rect>
</property>
<property name="windowTitle">
<string>Dialog</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="3" column="0">
<widget class="QLabel" name="label_4">
<property name="text">
<string>速度区间下限</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QLineEdit" name="lineEdit"/>
</item>
<item row="4" column="0">
<widget class="QLabel" name="label_3">
<property name="text">
<string>协议类型</string>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QLineEdit" name="lineEdit_3"/>
</item>
<item row="1" column="1">
<widget class="QLineEdit" name="lineEdit_2"/>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label_2">
<property name="text">
<string>速度区间上限</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>背景流报文种类</string>
</property>
</widget>
</item>
<item row="0" column="0" colspan="2">
<widget class="QLabel" name="label_5">
<property name="font">
<font>
<pointsize>16</pointsize>
</font>
</property>
<property name="layoutDirection">
<enum>Qt::LeftToRight</enum>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(0, 0, 0);</string>
</property>
<property name="text">
<string>背景流编辑界面</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="QComboBox" name="comboBox">
<item>
<property name="text">
<string>udp</string>
</property>
</item>
<item>
<property name="text">
<string>tcp</string>
</property>
</item>
</widget>
</item>
<item row="5" column="0" colspan="2">
<widget class="QDialogButtonBox" name="buttonBox">
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>

@ -0,0 +1,38 @@
#include "dlg_three.h"
#include "ui_dlg_three.h"
Dlg_three::Dlg_three(QWidget *parent)
: QDialog(parent)
, ui(new Ui::Dlg_three)
{
ui->setupUi(this);
ethernet[0] = ui->dst_mac->text();
ethernet[1] = ui->src_mac->text();
ethernet[2] = ui->eth_type->currentText();
ipmsg[0] = ui->ver->text();
ipmsg[1] = ui->hdr_len_2->text();
ipmsg[2] = ui->tos->text();
ipmsg[3] = ui->total_len->text();
ipmsg[4] = ui->id->text();
ipmsg[5] = ui->rsv->text();
ipmsg[6] = ui->df->text();
ipmsg[7] = ui->mf->text();
ipmsg[8] = ui->frag_offset->text();
ipmsg[9] = ui->ttl->text();
ipmsg[10] = ui->protocol->text();
ipmsg[11] = ui->checksum->text();
ipmsg[12] = ui->src_ip->text();
ipmsg[13] = ui->dst_ip->text();
protomsg[0] = ui->src_port->text();
protomsg[1] = ui->dst_port->text();
protomsg[2] = ui->hdr_len->text();
protomsg[3] = ui->seq->text();
protomsg[4] = ui->ack->text();
protomsg[5] = ui->winsize->text();
protomsg[6] = ui->checksum_2->text();
protomsg[7] = ui->urgent_p->text();
ui->scrollArea->setWidget(ui->scrollAreaWidgetContents);
ui->scrollAreaWidgetContents->setGeometry(0, 0, 500, 800); //区域要更大
}
Dlg_three::~Dlg_three() { delete ui; }

@ -0,0 +1,25 @@
#ifndef DLG_THREE_H
#define DLG_THREE_H
#include <QDialog>
namespace Ui {
class Dlg_three;
}
class Dlg_three : public QDialog
{
Q_OBJECT
public:
explicit Dlg_three(QWidget *parent = nullptr);
~Dlg_three();
QString ethernet[3];
QString ipmsg[100];
QString protomsg[100];
private:
Ui::Dlg_three *ui;
};
#endif // DLG_THREE_H

File diff suppressed because it is too large Load Diff

@ -0,0 +1,34 @@
#include "dlg_two.h"
#include "ui_dlg_two.h"
Dlg_two::Dlg_two(QWidget *parent)
: QDialog(parent)
, ui(new Ui::Dlg_two)
{
ui->setupUi(this);
ethernet[0] = ui->dst_mac->text();
ethernet[1] = ui->src_mac->text();
ethernet[2] = ui->eth_type->currentText();
ipmsg[0] = ui->ver->text();
ipmsg[1] = ui->hdr_len->text();
ipmsg[2] = ui->tos->text();
ipmsg[3] = ui->total_len->text();
ipmsg[4] = ui->id->text();
ipmsg[5] = ui->rsv->text();
ipmsg[6] = ui->df->text();
ipmsg[7] = ui->mf->text();
ipmsg[8] = ui->frag_offset->text();
ipmsg[9] = ui->ttl->text();
ipmsg[10] = ui->protocol->text();
ipmsg[11] = ui->checksum_1->text();
ipmsg[12] = ui->src_ip->text();
ipmsg[13] = ui->dst_ip->text();
protomsg[0] = ui->src_port->text();
protomsg[1] = ui->dst_port->text();
protomsg[2] = ui->length->text();
protomsg[3] = ui->checksum_2->text();
ui->scrollArea->setWidget(ui->scrollAreaWidgetContents);
ui->scrollAreaWidgetContents->setGeometry(0, 0, 500, 800); //区域要更大
}
Dlg_two::~Dlg_two() { delete ui; }

@ -0,0 +1,24 @@
#ifndef DLG_TWO_H
#define DLG_TWO_H
#include <QDialog>
namespace Ui {
class Dlg_two;
}
class Dlg_two : public QDialog
{
Q_OBJECT
public:
explicit Dlg_two(QWidget *parent = nullptr);
~Dlg_two();
QString ethernet[3];
QString ipmsg[100];
QString protomsg[100];
private:
Ui::Dlg_two *ui;
};
#endif // DLG_TWO_H

File diff suppressed because it is too large Load Diff

@ -0,0 +1,15 @@
#include "widget.h"
#include <QApplication>
#include <QSplitter>
#include <QtWidgets/QApplication>
#include <QtWidgets/QMainWindow>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QSplitter *window = new QSplitter(Qt::Horizontal, NULL);
Widget *widget = new Widget();
window->addWidget(widget);
window->resize(900, 600);
window->show();
return a.exec();
}

@ -0,0 +1,12 @@
<RCC>
<qresource>
<file>1.jpg</file>
<file>true.jpg</file>
<file>3.jpg</file>
<file>4.jpg</file>
<file>R-C.jpg</file>
</qresource>
</RCC>

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -0,0 +1,2 @@
<!DOCTYPE RCC>
<RCC version="1.0"/>

@ -0,0 +1,99 @@
#include "tcpcilent.h"
TcpSocket::TcpSocket() { m_fd = socket(AF_INET, SOCK_STREAM, 0); }
TcpSocket::TcpSocket(int socket) { m_fd = socket; }
TcpSocket::~TcpSocket()
{
if (m_fd > 0) {
cout << "delete connection<<endl" << endl;
close(m_fd);
}
}
int TcpSocket::connectToHost(string ip, unsigned short port)
{
// 连接服务器IP port
struct sockaddr_in saddr;
saddr.sin_family = AF_INET;
saddr.sin_port = htons(port);
inet_pton(AF_INET, ip.data(), &saddr.sin_addr.s_addr);
int ret = connect(m_fd, (struct sockaddr*)&saddr, sizeof(saddr));
if (ret == -1) {
perror("connect");
return -1;
}
cout << "成功和服务器建立连接..." << endl;
return ret;
}
int TcpSocket::sendMsg(string msg)
{
// 申请内存空间: 数据长度 + 包头4字节(存储数据长度)
char* data = new char[msg.size() + 4];
int bigLen = htonl(msg.size());
memcpy(data, &bigLen, 4);
memcpy(data + 4, msg.data(), msg.size());
// 发送数据
int ret = writen(data, msg.size() + 4);
delete[] data;
return ret;
}
string TcpSocket::recvMsg()
{
// 接收数据
// 1. 读数据头
int len = 0;
readn((char*)&len, 4);
len = ntohl(len);
cout << "数据块大小: " << len << endl;
// 根据读出的长度分配内存
char* buf = new char[len + 1];
int ret = readn(buf, len);
if (ret != len) {
return string();
}
buf[len] = '\0';
string retStr(buf);
delete[] buf;
return retStr;
}
int TcpSocket::readn(char* buf, int size)
{
int nread = 0;
int left = size;
char* p = buf;
while (left > 0) {
if ((nread = read(m_fd, p, left)) > 0) {
p += nread;
left -= nread;
} else if (nread == -1) {
return -1;
}
}
return size;
}
int TcpSocket::writen(const char* msg, int size)
{
int left = size;
int nwrite = 0;
const char* p = msg;
while (left > 0) {
if ((nwrite = write(m_fd, msg, left)) > 0) {
p += nwrite;
left -= nwrite;
} else if (nwrite == -1) {
perror("write failed");
return -1;
}
}
return size;
}

@ -0,0 +1,26 @@
#ifndef TCPCILENT_H
#define TCPCILENT_H
#include <string>
#include <arpa/inet.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <iostream>
using namespace std;
class TcpSocket {
public:
TcpSocket();
TcpSocket(int socket);
~TcpSocket();
int connectToHost(string ip, unsigned short port);
int sendMsg(string msg);
int readn(char* buf, int size);
int writen(const char* msg, int size);
string recvMsg();
private:
private:
int m_fd; // 通信的套接字
};
#endif // TCPCILENT_H

@ -0,0 +1,265 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 7.0.2, 2022-06-21T22:04:17. -->
<qtcreator>
<data>
<variable>EnvironmentId</variable>
<value type="QByteArray">{3b7e8319-7435-4826-87cb-251deaaf1196}</value>
</data>
<data>
<variable>ProjectExplorer.Project.ActiveTarget</variable>
<value type="qlonglong">0</value>
</data>
<data>
<variable>ProjectExplorer.Project.EditorSettings</variable>
<valuemap type="QVariantMap">
<value type="bool" key="EditorConfiguration.AutoIndent">true</value>
<value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value>
<value type="bool" key="EditorConfiguration.CamelCaseNavigation">true</value>
<valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0">
<value type="QString" key="language">Cpp</value>
<valuemap type="QVariantMap" key="value">
<value type="QByteArray" key="CurrentPreferences">CppGlobal</value>
</valuemap>
</valuemap>
<valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1">
<value type="QString" key="language">QmlJS</value>
<valuemap type="QVariantMap" key="value">
<value type="QByteArray" key="CurrentPreferences">QmlJSGlobal</value>
</valuemap>
</valuemap>
<value type="qlonglong" key="EditorConfiguration.CodeStyle.Count">2</value>
<value type="QByteArray" key="EditorConfiguration.Codec">UTF-8</value>
<value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value>
<value type="int" key="EditorConfiguration.IndentSize">4</value>
<value type="bool" key="EditorConfiguration.KeyboardTooltips">false</value>
<value type="int" key="EditorConfiguration.MarginColumn">80</value>
<value type="bool" key="EditorConfiguration.MouseHiding">true</value>
<value type="bool" key="EditorConfiguration.MouseNavigation">true</value>
<value type="int" key="EditorConfiguration.PaddingMode">1</value>
<value type="bool" key="EditorConfiguration.PreferSingleLineComments">false</value>
<value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value>
<value type="bool" key="EditorConfiguration.ShowMargin">false</value>
<value type="int" key="EditorConfiguration.SmartBackspaceBehavior">0</value>
<value type="bool" key="EditorConfiguration.SmartSelectionChanging">true</value>
<value type="bool" key="EditorConfiguration.SpacesForTabs">true</value>
<value type="int" key="EditorConfiguration.TabKeyBehavior">0</value>
<value type="int" key="EditorConfiguration.TabSize">8</value>
<value type="bool" key="EditorConfiguration.UseGlobal">true</value>
<value type="bool" key="EditorConfiguration.UseIndenter">false</value>
<value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value>
<value type="bool" key="EditorConfiguration.addFinalNewLine">true</value>
<value type="bool" key="EditorConfiguration.cleanIndentation">true</value>
<value type="bool" key="EditorConfiguration.cleanWhitespace">true</value>
<value type="QString" key="EditorConfiguration.ignoreFileTypes">*.md, *.MD, Makefile</value>
<value type="bool" key="EditorConfiguration.inEntireDocument">false</value>
<value type="bool" key="EditorConfiguration.skipTrailingWhitespace">true</value>
</valuemap>
</data>
<data>
<variable>ProjectExplorer.Project.PluginSettings</variable>
<valuemap type="QVariantMap">
<valuemap type="QVariantMap" key="AutoTest.ActiveFrameworks">
<value type="bool" key="AutoTest.Framework.Boost">true</value>
<value type="bool" key="AutoTest.Framework.CTest">false</value>
<value type="bool" key="AutoTest.Framework.Catch">true</value>
<value type="bool" key="AutoTest.Framework.GTest">true</value>
<value type="bool" key="AutoTest.Framework.QtQuickTest">true</value>
<value type="bool" key="AutoTest.Framework.QtTest">true</value>
</valuemap>
<valuemap type="QVariantMap" key="AutoTest.CheckStates"/>
<value type="int" key="AutoTest.RunAfterBuild">0</value>
<value type="bool" key="AutoTest.UseGlobal">true</value>
<valuelist type="QVariantList" key="ClangCodeModel.CustomCommandLineKey"/>
<value type="bool" key="ClangCodeModel.UseGlobalConfig">true</value>
<value type="QString" key="ClangCodeModel.WarningConfigId">Builtin.BuildSystem</value>
<valuemap type="QVariantMap" key="ClangTools">
<value type="bool" key="ClangTools.AnalyzeOpenFiles">true</value>
<value type="bool" key="ClangTools.BuildBeforeAnalysis">true</value>
<value type="QString" key="ClangTools.DiagnosticConfig">Builtin.DefaultTidyAndClazy</value>
<value type="int" key="ClangTools.ParallelJobs">4</value>
<valuelist type="QVariantList" key="ClangTools.SelectedDirs"/>
<valuelist type="QVariantList" key="ClangTools.SelectedFiles"/>
<valuelist type="QVariantList" key="ClangTools.SuppressedDiagnostics"/>
<value type="bool" key="ClangTools.UseGlobalSettings">true</value>
</valuemap>
</valuemap>
</data>
<data>
<variable>ProjectExplorer.Project.Target.0</variable>
<valuemap type="QVariantMap">
<value type="QString" key="DeviceType">Desktop</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop Qt 6.2.4 GCC 64bit</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop Qt 6.2.4 GCC 64bit</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">qt.qt6.624.gcc_64_kit</value>
<value type="qlonglong" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value>
<value type="qlonglong" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
<value type="qlonglong" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
<value type="int" key="EnableQmlDebugging">0</value>
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">/mnt/hgfs/share/build-test2-Desktop_Qt_6_2_4_GCC_64bit-Debug</value>
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">/mnt/hgfs/share/build-test2-Desktop_Qt_6_2_4_GCC_64bit-Debug</value>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
<valuelist type="QVariantList" key="QtProjectManager.QMakeBuildStep.SelectedAbis"/>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Build</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Clean</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
</valuemap>
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.CustomParsers"/>
<value type="bool" key="ProjectExplorer.BuildConfiguration.ParseStandardOutput">false</value>
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Debug</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1">
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">/mnt/hgfs/share/build-test2-Desktop_Qt_6_2_4_GCC_64bit-Release</value>
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">/mnt/hgfs/share/build-test2-Desktop_Qt_6_2_4_GCC_64bit-Release</value>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
<valuelist type="QVariantList" key="QtProjectManager.QMakeBuildStep.SelectedAbis"/>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Build</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Clean</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
</valuemap>
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.CustomParsers"/>
<value type="bool" key="ProjectExplorer.BuildConfiguration.ParseStandardOutput">false</value>
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Release</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
<value type="int" key="QtQuickCompiler">0</value>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.2">
<value type="int" key="EnableQmlDebugging">0</value>
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">/mnt/hgfs/share/build-test2-Desktop_Qt_6_2_4_GCC_64bit-Profile</value>
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">/mnt/hgfs/share/build-test2-Desktop_Qt_6_2_4_GCC_64bit-Profile</value>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
<valuelist type="QVariantList" key="QtProjectManager.QMakeBuildStep.SelectedAbis"/>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Build</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Clean</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
</valuemap>
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.CustomParsers"/>
<value type="bool" key="ProjectExplorer.BuildConfiguration.ParseStandardOutput">false</value>
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Profile</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
<value type="int" key="QtQuickCompiler">0</value>
<value type="int" key="SeparateDebugInfo">0</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.Target.BuildConfigurationCount">3</value>
<valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">0</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Deploy</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value>
</valuemap>
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value>
<valuemap type="QVariantMap" key="ProjectExplorer.DeployConfiguration.CustomData"/>
<value type="bool" key="ProjectExplorer.DeployConfiguration.CustomDataEnabled">false</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.Target.DeployConfigurationCount">1</value>
<valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0">
<value type="bool" key="Analyzer.Perf.Settings.UseGlobalSettings">true</value>
<value type="bool" key="Analyzer.QmlProfiler.Settings.UseGlobalSettings">true</value>
<value type="bool" key="Analyzer.Valgrind.Settings.UseGlobalSettings">true</value>
<valuelist type="QVariantList" key="CustomOutputParsers"/>
<value type="int" key="PE.EnvironmentAspect.Base">2</value>
<valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:/mnt/hgfs/share/GUI/test2.pro</value>
<value type="QString" key="ProjectExplorer.RunConfiguration.BuildKey">/mnt/hgfs/share/GUI/test2.pro</value>
<value type="bool" key="RunConfiguration.UseCppDebugger">false</value>
<value type="bool" key="RunConfiguration.UseCppDebuggerAuto">true</value>
<value type="bool" key="RunConfiguration.UseLibrarySearchPath">true</value>
<value type="bool" key="RunConfiguration.UseQmlDebugger">false</value>
<value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value>
<value type="QString" key="RunConfiguration.WorkingDirectory.default">/mnt/hgfs/share/build-test2-Desktop_Qt_6_2_4_GCC_64bit-Debug</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.Target.RunConfigurationCount">1</value>
</valuemap>
</data>
<data>
<variable>ProjectExplorer.Project.TargetCount</variable>
<value type="qlonglong">1</value>
</data>
<data>
<variable>ProjectExplorer.Project.Updater.FileVersion</variable>
<value type="int">22</value>
</data>
<data>
<variable>Version</variable>
<value type="int">22</value>
</data>
</qtcreator>

Binary file not shown.

After

Width:  |  Height:  |  Size: 517 KiB

@ -0,0 +1,295 @@
#include "widget.h"
#include "ui_widget.h"
Widget::Widget(QWidget *parent)
: QWidget(parent)
, ui(new Ui::Widget)
{
// init
ui->setupUi(this);
if (ui->protoclType->currentText() == "TCP") params[0] = 0;
if (ui->protoclType->currentText() == "UDP") params[0] = 1;
/*params[1] = ui->time->text().toLongLong(); // per second
params[2] = ui->size->text().toLongLong();
params[3] = ui->speed->text().toLongLong();*/
cilent_fd = new TcpSocket();
chart_timer = new QTimer(this);
receive_timer = new QTimer(this);
chart_timer->setSingleShot(false);
receive_timer->setSingleShot(false);
QString yname[3] = {"瞬时吞吐量(Mbps)", "时延(ms)", "丢包率(%)"};
for (int i = 0; i < 3; i++) {
charts[i] = new QCustomPlot();
lines[i] = charts[i]->addGraph();
lines[i]->setPen(QPen(Qt::blue));
charts[i]->xAxis->setLabel(yname[i % 3]);
charts[i]->yAxis->setRange(0, 1);
// charts[i]->yAxis->rescale(true);
charts[i]->graph(0)->setSmooth(true); //添加平滑曲线
charts[i]->setInteractions(QCP::iRangeDrag | QCP::iRangeZoom |
QCP::iSelectPlottables);
// charts[i]->axisRect()->setRangeZoomFactor(1.2, 12);
}
for (int i = 0; i < 3; i++) ui->gridLayout->addWidget(charts[i], i, 0);
/*(for (int i = 0; i < 3; i++)
ui->gridLayout_4->addWidget(charts[i + 3], i, 0);*/
// tcp setting
string ip = "192.168.48.3";
int ret = cilent_fd->connectToHost(ip, 8321);
if (ret == -1) {
perror("connect failed");
}
// slot connect
QObject::connect(receive_timer, SIGNAL(timeout()), this,
SLOT(receive_start()));
QObject::connect(chart_timer, SIGNAL(timeout()), this, SLOT(Show_Plot()));
QObject::connect(ui->clear1, SIGNAL(clicked(bool)), this,
SLOT(slotBtnClear()));
// QObject::connect(ui->start1, SIGNAL(clicked(bool)),
// this,SLOT(slotBtnStart()));
QObject::connect(ui->stop1, SIGNAL(clicked(bool)), this,
SLOT(slotBtnStop()));
// Set the colors from the light theme as default ones
QPalette pal = qApp->palette();
pal.setColor(QPalette::Window, QRgb(0xf0f0f0));
pal.setColor(QPalette::WindowText, QRgb(0x404044));
qApp->setPalette(pal);
}
Widget::~Widget()
{
delete ui;
cout << "weight delete" << endl;
}
void Widget::slotBtnClear() { pointCount = 0; }
void Widget::slotBtnStart()
{
cout << "start" << endl;
char s[100] = "set_parm";
test_time = ui->time->text().toLongLong();
send_port = ui->port->currentText().toLongLong();
send_rate = ui->speed->text().toLongLong();
pkt_size = ui->size->text().toLongLong();
cilent_fd->writen(s, strlen(s) + 1);
cilent_fd->writen((char *)&test_time, sizeof(long long));
cilent_fd->writen((char *)&send_rate, sizeof(long long));
cilent_fd->writen((char *)&pkt_size, sizeof(long long));
cilent_fd->writen((char *)&send_port, sizeof(long long));
test_time *= 10;
// cilent_fd->writen((char *)&params, sizeof(int) * 6);
// cilent_fd->writen((char *)&params, sizeof(unsigned char) * pktlen);
receive_timer->start(50);
chart_timer->start(30);
}
void Widget::slotBtnStop()
{
receive_timer->stop();
chart_timer->stop();
}
void Widget::receive_start()
{
if (cilent_fd->readn((char *)(data[rows]), sizeof(double) * 4) != -1) {
/*printf("time:%d data: %d %d %d\n", times, data[rows][0],
data[rows][1], data[rows][2]);*/
// receive end
if (data[rows][0] == -1 && data[rows][1] == -1 && data[rows][2] == -1 &&
data[rows][3] == -1) {
cout << "end" << endl;
receive_timer->stop();
chart_timer->stop();
return;
}
// process
rows++;
for (int i = 0; i < 3; i++) {
lines[i]->addData(persecond * rows, data[rows - 1][i]);
// lines[i + 3]->addData(persecond * rows, data[rows - 1][i]);
}
QString strtodouble = QString::number(data[rows - 1][3], 'g', 5);
ui->shuzhi1->setText(strtodouble);
strtodouble = QString::number(data[rows - 1][1], 'g', 5);
ui->shuzhi2->setText(strtodouble);
strtodouble = QString::number(data[rows - 1][2], 'g', 5);
ui->shuzhi3->setText(strtodouble);
pointCount++;
}
}
// update
void Widget::Show_Plot()
{
/*for (int i = 0; i < 3; i++) {
charts[i]->xAxis->setRange(0, (pointCount * persecond > permulmaxx)
? pointCount * persecond
: permulmaxx);
charts[i]->replot(QCustomPlot::rpQueuedReplot);
}*/
for (int i = 0; i < 3; i++) {
charts[i]->xAxis->setRange((pointCount * persecond > permulmaxx)
? (pointCount * persecond - permulmaxx)
: 0,
pointCount * persecond);
charts[i]->yAxis->rescale(false);
charts[i]->replot(QCustomPlot::rpQueuedReplot);
}
}
//使widget能显示出背景图片
void Widget::paintEvent(QPaintEvent *e)
{
QStyleOption opt;
opt.initFrom(this);
QPainter p(this);
style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this);
QWidget::paintEvent(e);
}
void Widget::on_start1_clicked()
{
//新建一个窗口对象this指定了新窗口的父对象。
dialog1 = new Dlg_one(this);
connect(dialog1, SIGNAL(retaccept()), this, SLOT(slotBtnStart()));
dialog1->setModal(false);
dialog1->show();
}
void Widget::on_bj_clicked()
{
//新建一个窗口对象this指定了新窗口的父对象。
dialog4 = new Dlg_four(this);
dialog4->setModal(false);
dialog4->show();
}
void Widget::on_setting_clicked()
{
if (ui->protoclType->currentText() == "UDP") {
dialog2 = new Dlg_two(this);
dialog2->setModal(false);
dialog2->show();
bool ok;
for (int i = 0, j = 0; i < dialog2->ethernet[0].length(); i += 3, j++) {
pkt[j] = dialog2->ethernet[0].mid(i, 2).toInt(&ok, 16);
} // src mac
for (int i = 0, j = 6; i < dialog2->ethernet[1].length(); i += 3, j++) {
pkt[j] = dialog2->ethernet[1].mid(i, 2).toInt(&ok, 16);
} // dst mac
pkt[12] = 0x08;
pkt[13] = 0x00; // eth type
pkt[14] = dialog2->ipmsg[0].toInt() * 16 +
dialog2->ipmsg[1].toInt(); // ver and hdr_len
pkt[15] = dialog2->ipmsg[2].toInt(); // tos
pkt[16] = dialog2->ipmsg[3].toInt() / 256;
pkt[17] = dialog2->ipmsg[3].toInt() % 256; // total len
pkt[18] = dialog2->ipmsg[4].toInt() / 256;
pkt[19] = dialog2->ipmsg[4].toInt() % 256; // id
int temp = dialog2->ipmsg[5].toInt() * 8 * 16 +
dialog2->ipmsg[6].toInt() * 4 * 16 +
dialog2->ipmsg[7].toInt() * 2 * 16 +
dialog2->ipmsg[8].toInt();
pkt[20] = temp / 256;
pkt[21] = temp % 256; // rsv,df,mf and frag offset
pkt[22] = dialog2->ipmsg[9].toInt(); // ttl
pkt[23] = dialog2->ipmsg[10].toInt(); // protocol
for (int i = 2, j = 24; j <= 25; i += 2, j++) {
pkt[j] = dialog2->ipmsg[11].mid(i, 2).toInt(&ok, 16);
} // checksum
QStringList ips = dialog2->ipmsg[12].split(".");
pkt[26] = ips.at(0).toInt();
pkt[27] = ips.at(1).toInt();
pkt[28] = ips.at(2).toInt();
pkt[29] = ips.at(3).toInt(); // src ip
ips = dialog2->ipmsg[13].split(".");
pkt[30] = ips.at(0).toInt();
pkt[31] = ips.at(1).toInt();
pkt[32] = ips.at(2).toInt();
pkt[33] = ips.at(3).toInt(); // dst ip
pkt[34] = dialog2->protomsg[0].toInt() / 256;
pkt[35] = dialog2->protomsg[0].toInt() % 256; // src port
pkt[36] = dialog2->protomsg[1].toInt() / 256;
pkt[37] = dialog2->protomsg[1].toInt() % 256; // dst port
pkt[38] = dialog2->protomsg[2].toInt() / 256;
pkt[39] = dialog2->protomsg[2].toInt() % 256; // length
pkt[40] = dialog2->protomsg[3].toInt() / 256;
pkt[41] = dialog2->protomsg[3].toInt() % 256; // checksum
params[4] = dialog2->protomsg[0].toInt(); // src port
params[5] = dialog2->protomsg[1].toInt(); // dst port
// pktlen = 42;
} else if (ui->protoclType->currentText() == "TCP") {
dialog3 = new Dlg_three(this);
dialog3->setModal(false);
dialog3->show();
bool ok;
for (int i = 0, j = 0; i < dialog3->ethernet[0].length(); i += 3, j++) {
pkt[j] = dialog3->ethernet[0].mid(i, 2).toInt(&ok, 16);
} // src mac
for (int i = 0, j = 6; i < dialog3->ethernet[1].length(); i += 3, j++) {
pkt[j] = dialog3->ethernet[1].mid(i, 2).toInt(&ok, 16);
} // dst mac
pkt[12] = 0x08;
pkt[13] = 0x00; // eth type
pkt[14] = dialog3->ipmsg[0].toInt() * 16 +
dialog3->ipmsg[1].toInt(); // ver and hdr_len
pkt[15] = dialog3->ipmsg[2].toInt(); // tos
pkt[16] = dialog3->ipmsg[3].toInt() / 256;
pkt[17] = dialog3->ipmsg[3].toInt() % 256; // total len
pkt[18] = dialog3->ipmsg[4].toInt() / 256;
pkt[19] = dialog3->ipmsg[4].toInt() % 256; // id
int temp = dialog3->ipmsg[5].toInt() * 8 * 16 +
dialog3->ipmsg[6].toInt() * 4 * 16 +
dialog3->ipmsg[7].toInt() * 2 * 16 +
dialog3->ipmsg[8].toInt();
pkt[20] = temp / 256;
pkt[21] = temp % 256; // rsv,df,mf and frag offset
pkt[22] = dialog3->ipmsg[9].toInt(); // ttl
pkt[23] = dialog3->ipmsg[10].toInt(); // protocol
for (int i = 2, j = 24; j <= 25; i += 2, j++) {
pkt[j] = dialog3->ipmsg[11].mid(i, 2).toInt(&ok, 16);
} // checksum
QStringList ips = dialog3->ipmsg[12].split(".");
pkt[26] = ips.at(0).toInt();
pkt[27] = ips.at(1).toInt();
pkt[28] = ips.at(2).toInt();
pkt[29] = ips.at(3).toInt(); // src ip
ips = dialog3->ipmsg[13].split(".");
pkt[30] = ips.at(0).toInt();
pkt[31] = ips.at(1).toInt();
pkt[32] = ips.at(2).toInt();
pkt[33] = ips.at(3).toInt(); // dst ip
pkt[34] = dialog3->protomsg[0].toInt() / 256;
pkt[35] = dialog3->protomsg[0].toInt() % 256; // src port
pkt[36] = dialog3->protomsg[1].toInt() / 256;
pkt[37] = dialog3->protomsg[1].toInt() % 256; // dst port
pkt[38] = dialog3->protomsg[2].toInt() / 256 / 256 / 256;
pkt[39] = dialog3->protomsg[2].toInt() / 256 / 256 % 256;
pkt[40] = dialog3->protomsg[2].toInt() / 256 % 256;
pkt[41] = dialog3->protomsg[2].toInt() % 256; // seq
pkt[42] = dialog3->protomsg[3].toInt() / 256 / 256 / 256;
pkt[43] = dialog3->protomsg[3].toInt() / 256 / 256 % 256;
pkt[44] = dialog3->protomsg[3].toInt() / 256 % 256;
pkt[45] = dialog3->protomsg[3].toInt() % 256; // ack
pkt[46] = dialog3->protomsg[4].toInt(); // hdr_len
pkt[47] = 0x36;
pkt[48] = dialog3->protomsg[5].toInt() / 256;
pkt[49] = dialog3->protomsg[5].toInt() % 256; // winsize
pkt[50] = dialog3->protomsg[6].toInt() / 256;
pkt[51] = dialog3->protomsg[6].toInt() % 256; // checksum
pkt[52] = dialog3->protomsg[7].toInt() / 256;
pkt[53] = dialog3->protomsg[7].toInt() % 256; // urgent_p
params[4] = dialog3->protomsg[0].toInt(); // src port
params[5] = dialog3->protomsg[1].toInt(); // dst port
// pktlen = 54;
}
}

@ -0,0 +1,69 @@
#ifndef WIDGET_H
#define WIDGET_H
#include <QWidget>
#include <QTimer>
#include <qstring.h>
#include "Dlg_one.h"
#include "dlg_four.h"
#include "dlg_two.h"
#include "dlg_three.h"
#include "tcpcilent.h"
#include <qfile.h>
#include "qcustomplot.h"
QT_BEGIN_NAMESPACE
class QComboBox;
class QCheckBox;
class Ui_ThemeWidgetForm;
QT_END_NAMESPACE
typedef QPair<QPointF, QString> Data;
typedef QList<Data> DataList;
typedef QList<DataList> DataTable;
QT_USE_NAMESPACE
namespace Ui {
class Widget;
}
class Widget : public QWidget {
Q_OBJECT
public:
Widget(QWidget *parent = nullptr);
~Widget();
void paintEvent(QPaintEvent *e);
private:
Ui::Widget *ui;
Dlg_one *dialog1;
Dlg_two *dialog2;
Dlg_three *dialog3;
Dlg_four *dialog4;
QString ipmsg[100], ethernet[10];
long long test_time, send_port, pkt_size, send_rate, params[10];
QTimer *chart_timer, *receive_timer;
//*ThroughPutChart1, *TimeDelayChart1, *PacketLossChart1;
QCustomPlot *charts[6];
QCPGraph *lines[6];
const int AXIS_MAX_X = 100, AXIS_MAX_Y = 100; /* 横纵坐标最大显示范围 */
const double persecond = 0.1;
const double permulmaxx = persecond * AXIS_MAX_X;
int pointCount = 0, times = 0; /* 用来记录数据点数 */
double data[10000][4];
unsigned char pkt[100];
int rows = 0, chartrows = 0;
// tcp socket
TcpSocket *cilent_fd;
private slots:
void slotBtnClear();
void slotBtnStart();
void slotBtnStop();
void on_start1_clicked();
void on_setting_clicked();
void on_bj_clicked();
void receive_start();
void Show_Plot();
};
#endif // WIDGET_H

@ -0,0 +1,686 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Widget</class>
<widget class="QWidget" name="Widget">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1344</width>
<height>651</height>
</rect>
</property>
<property name="windowTitle">
<string>Widget</string>
</property>
<property name="styleSheet">
<string notr="true">background-image: url(:/4.jpg);</string>
</property>
<layout class="QGridLayout" name="gridLayout_3">
<item row="0" column="0" rowspan="4">
<layout class="QGridLayout" name="gridLayout_2">
<property name="sizeConstraint">
<enum>QLayout::SetFixedSize</enum>
</property>
<property name="horizontalSpacing">
<number>1</number>
</property>
<property name="verticalSpacing">
<number>7</number>
</property>
<item row="0" column="0" colspan="2">
<widget class="QPushButton" name="start1">
<property name="maximumSize">
<size>
<width>200</width>
<height>50</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">QPushButton#start1 {
background-color:rgb(247,200,23);
border-radius: 12px;
border: 1px solid #46bcff;
color: #46bcff;
border-style:outset;
}
QPushButton#start1:hover {
border-radius: 12px;
background-color: rgb(251,178,23);
border: 0px;
color: #ffffff;
}
QPushButton#start1:pressed {
border: 2px groove gray;
background-color: #CC6600;
border-radius: 12px;
}
QPushButton#start1:disabled {
border: 0px;
border-radius: 12px;
border: 1px solid #46bcff;
opacity: 0.4;
}</string>
</property>
<property name="text">
<string>开始</string>
</property>
</widget>
</item>
<item row="10" column="1">
<widget class="QLineEdit" name="time">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>100</width>
<height>40</height>
</size>
</property>
<property name="text">
<string>20</string>
</property>
</widget>
</item>
<item row="12" column="0">
<widget class="QLabel" name="label_5">
<property name="minimumSize">
<size>
<width>0</width>
<height>40</height>
</size>
</property>
<property name="text">
<string>背景流选择</string>
</property>
</widget>
</item>
<item row="11" column="0">
<widget class="QLabel" name="label_4">
<property name="styleSheet">
<string notr="true">background-color: rgb(255, 255, 222);</string>
</property>
<property name="text">
<string>协议类型</string>
</property>
</widget>
</item>
<item row="12" column="1">
<widget class="QComboBox" name="comboBox">
<property name="minimumSize">
<size>
<width>0</width>
<height>40</height>
</size>
</property>
<item>
<property name="text">
<string>无背景流</string>
</property>
</item>
<item>
<property name="text">
<string>有背景流</string>
</property>
</item>
</widget>
</item>
<item row="8" column="0">
<widget class="QLabel" name="label_6">
<property name="text">
<string>发送端口</string>
</property>
</widget>
</item>
<item row="1" column="0" colspan="2">
<widget class="QPushButton" name="stop1">
<property name="maximumSize">
<size>
<width>200</width>
<height>50</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">QPushButton#stop1 {
background-color:rgb(247,200,23);
border-radius: 12px;
border: 1px solid #46bcff;
color: #46bcff;
}
QPushButton#stop1:hover {
border-radius: 12px;
background-color: rgb(251,178,23);
border: 0px;
color: #ffffff;
}
QPushButton#stop1:pressed {
border: 2px groove gray;
background-color: #CC6600;
border-radius: 12px;
}
QPushButton#stop1:disabled {
border: 0px;
border-radius: 12px;
border: 1px solid #46bcff;
opacity: 0.4;
}</string>
</property>
<property name="text">
<string>暂停</string>
</property>
</widget>
</item>
<item row="8" column="1">
<widget class="QComboBox" name="port">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>100</width>
<height>40</height>
</size>
</property>
<item>
<property name="text">
<string>1</string>
</property>
</item>
<item>
<property name="text">
<string>0</string>
</property>
</item>
<item>
<property name="text">
<string>2</string>
</property>
</item>
<item>
<property name="text">
<string>3</string>
</property>
</item>
</widget>
</item>
<item row="5" column="0" colspan="2">
<widget class="QPushButton" name="bj">
<property name="minimumSize">
<size>
<width>0</width>
<height>50</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">QPushButton#bj {
background-color:rgb(247,200,23);
border-radius: 12px;
border: 1px solid #46bcff;
color: #46bcff;
}
QPushButton#bj:hover {
border-radius: 12px;
background-color: rgb(251,178,23);
border: 0px;
color: #ffffff;
}
QPushButton#bj:pressed {
border: 2px groove gray;
background-color: #CC6600;
border-radius: 12px;
}
QPushButton#bj:disabled {
border: 0px;
border-radius: 12px;
border: 1px solid #46bcff;
opacity: 0.4;
}</string>
</property>
<property name="text">
<string>背景流编辑</string>
</property>
</widget>
</item>
<item row="2" column="0" colspan="2">
<widget class="QPushButton" name="clear1">
<property name="maximumSize">
<size>
<width>200</width>
<height>50</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">QPushButton#clear1 {
background-color:rgb(247,200,23);
border-radius: 12px;
border: 1px solid #46bcff;
color: #46bcff;
}
QPushButton#clear1:hover {
border-radius: 12px;
background-color: rgb(251,178,23);
border: 0px;
color: #ffffff;
}
QPushButton#clear1:pressed {
border: 2px groove gray;
background-color: #CC6600;
border-radius: 12px;
}
QPushButton#clear1:disabled {
border: 0px;
border-radius: 12px;
border: 1px solid #46bcff;
opacity: 0.4;
}</string>
</property>
<property name="text">
<string>reset</string>
</property>
</widget>
</item>
<item row="3" column="0" colspan="2">
<widget class="QPushButton" name="pushButton">
<property name="maximumSize">
<size>
<width>200</width>
<height>50</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">QPushButton#pushButton {
background-color:rgb(247,200,23);
border-radius: 12px;
border: 1px solid #46bcff;
color: #46bcff;
}
QPushButton#pushButton:hover {
border-radius: 12px;
background-color: rgb(251,178,23);
border: 0px;
color: #ffffff;
}
QPushButton#pushButton:pressed {
border: 2px groove gray;
background-color: #CC6600;
border-radius: 12px;
}
QPushButton#pushButton:disabled {
border: 0px;
border-radius: 12px;
border: 1px solid #46bcff;
opacity: 0.4;
}</string>
</property>
<property name="text">
<string>生成数据文档</string>
</property>
</widget>
</item>
<item row="7" column="1">
<widget class="QLineEdit" name="speed">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>100</width>
<height>40</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(25, 125, 0);</string>
</property>
<property name="text">
<string>100</string>
</property>
<property name="maxLength">
<number>8</number>
</property>
</widget>
</item>
<item row="10" column="0">
<widget class="QLabel" name="label_3">
<property name="styleSheet">
<string notr="true">background-color: rgb(255, 255, 191);</string>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
<property name="text">
<string>测试时间</string>
</property>
</widget>
</item>
<item row="6" column="0">
<widget class="QLabel" name="label">
<property name="styleSheet">
<string notr="true">background-color: rgb(255, 255, 191);</string>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
<property name="text">
<string>报文大小</string>
</property>
</widget>
</item>
<item row="6" column="1">
<widget class="QLineEdit" name="size">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>100</width>
<height>40</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(25, 125, 0);</string>
</property>
<property name="text">
<string>64</string>
</property>
<property name="maxLength">
<number>8</number>
</property>
<property name="clearButtonEnabled">
<bool>false</bool>
</property>
</widget>
</item>
<item row="11" column="1">
<widget class="QComboBox" name="protoclType">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>100</width>
<height>40</height>
</size>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<item>
<property name="text">
<string>UDP</string>
</property>
</item>
<item>
<property name="text">
<string>TCP</string>
</property>
</item>
</widget>
</item>
<item row="7" column="0">
<widget class="QLabel" name="label_2">
<property name="styleSheet">
<string notr="true">background-color: rgb(255, 255, 222);</string>
</property>
<property name="text">
<string>传输速率</string>
</property>
</widget>
</item>
<item row="4" column="0" colspan="2">
<widget class="QPushButton" name="setting">
<property name="maximumSize">
<size>
<width>200</width>
<height>50</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">QPushButton#setting {
background-color:rgb(247,200,23);
border-radius: 12px;
border: 1px solid #46bcff;
color: #46bcff;
}
QPushButton#setting:hover {
border-radius: 12px;
background-color: rgb(251,178,23);
border: 0px;
color: #ffffff;
}
QPushButton#setting:pressed {
border: 2px groove gray;
background-color: #CC6600;
border-radius: 12px;
}
QPushButton#setting:disabled {
border: 0px;
border-radius: 12px;
border: 1px solid #46bcff;
opacity: 0.4;
}</string>
</property>
<property name="text">
<string>报文编辑</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="0" column="4" rowspan="3">
<layout class="QGridLayout" name="gridLayout">
<property name="sizeConstraint">
<enum>QLayout::SetMaximumSize</enum>
</property>
</layout>
</item>
<item row="3" column="3">
<spacer name="horizontalSpacer_5">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>0</width>
<height>23</height>
</size>
</property>
</spacer>
</item>
<item row="3" column="4">
<layout class="QHBoxLayout" name="horizontalLayout" stretch="0,0,0,0,0,0,0,0,0">
<property name="spacing">
<number>0</number>
</property>
<item>
<widget class="QLabel" name="label_7">
<property name="maximumSize">
<size>
<width>16777215</width>
<height>60</height>
</size>
</property>
<property name="font">
<font>
<family>Microsoft YaHei UI</family>
<pointsize>25</pointsize>
<italic>false</italic>
<bold>false</bold>
</font>
</property>
<property name="styleSheet">
<string notr="true">background:transparent;
font: 25pt &quot;Microsoft YaHei UI&quot;;</string>
</property>
<property name="text">
<string>平均吞吐率</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="shuzhi1">
<property name="enabled">
<bool>true</bool>
</property>
<property name="font">
<font>
<pointsize>25</pointsize>
</font>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_12">
<property name="maximumSize">
<size>
<width>16777215</width>
<height>60</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">background:transparent;
font: 25pt &quot;Microsoft YaHei UI&quot;;</string>
</property>
<property name="text">
<string>Mbps </string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_8">
<property name="maximumSize">
<size>
<width>16777215</width>
<height>60</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">background:transparent;
font: 25pt &quot;Microsoft YaHei UI&quot;;</string>
</property>
<property name="text">
<string>平均时延</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="shuzhi2">
<property name="font">
<font>
<pointsize>25</pointsize>
</font>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_11">
<property name="maximumSize">
<size>
<width>16777215</width>
<height>60</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">background:transparent;
font: 25pt &quot;Microsoft YaHei UI&quot;;</string>
</property>
<property name="text">
<string>ms </string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_9">
<property name="maximumSize">
<size>
<width>16777215</width>
<height>60</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">background:transparent;
font: 25pt &quot;Microsoft YaHei UI&quot;;</string>
</property>
<property name="text">
<string>平均丢包率</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="shuzhi3">
<property name="font">
<font>
<pointsize>25</pointsize>
</font>
</property>
<property name="maxLength">
<number>30</number>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_10">
<property name="maximumSize">
<size>
<width>16777215</width>
<height>60</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">background:transparent;
font: 25pt &quot;Microsoft YaHei UI&quot;;</string>
</property>
<property name="text">
<string>% </string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
<zorder>horizontalSpacer_5</zorder>
<zorder></zorder>
<zorder></zorder>
</widget>
<resources/>
<connections/>
</ui>

@ -0,0 +1,127 @@
木兰宽松许可证, 第2版
木兰宽松许可证, 第2版
2020年1月 http://license.coscl.org.cn/MulanPSL2
您对“软件”的复制、使用、修改及分发受木兰宽松许可证第2版“本许可证”的如下条款的约束
0. 定义
“软件”是指由“贡献”构成的许可在“本许可证”下的程序和相关文档的集合。
“贡献”是指由任一“贡献者”许可在“本许可证”下的受版权法保护的作品。
“贡献者”是指将受版权法保护的作品许可在“本许可证”下的自然人或“法人实体”。
“法人实体”是指提交贡献的机构及其“关联实体”。
“关联实体”是指对“本许可证”下的行为方而言控制、受控制或与其共同受控制的机构此处的控制是指有受控方或共同受控方至少50%直接或间接的投票权、资金或其他有价证券。
1. 授予版权许可
每个“贡献者”根据“本许可证”授予您永久性的、全球性的、免费的、非独占的、不可撤销的版权许可,您可以复制、使用、修改、分发其“贡献”,不论修改与否。
2. 授予专利许可
每个“贡献者”根据“本许可证”授予您永久性的、全球性的、免费的、非独占的、不可撤销的(根据本条规定撤销除外)专利许可,供您制造、委托制造、使用、许诺销售、销售、进口其“贡献”或以其他方式转移其“贡献”。前述专利许可仅限于“贡献者”现在或将来拥有或控制的其“贡献”本身或其“贡献”与许可“贡献”时的“软件”结合而将必然会侵犯的专利权利要求,不包括对“贡献”的修改或包含“贡献”的其他结合。如果您或您的“关联实体”直接或间接地,就“软件”或其中的“贡献”对任何人发起专利侵权诉讼(包括反诉或交叉诉讼)或其他专利维权行动,指控其侵犯专利权,则“本许可证”授予您对“软件”的专利许可自您提起诉讼或发起维权行动之日终止。
3. 无商标许可
“本许可证”不提供对“贡献者”的商品名称、商标、服务标志或产品名称的商标许可但您为满足第4条规定的声明义务而必须使用除外。
4. 分发限制
您可以在任何媒介中将“软件”以源程序形式或可执行形式重新分发,不论修改与否,但您必须向接收者提供“本许可证”的副本,并保留“软件”中的版权、商标、专利及免责声明。
5. 免责声明与责任限制
“软件”及其中的“贡献”在提供时不带任何明示或默示的担保。在任何情况下,“贡献者”或版权所有者不对任何人因使用“软件”或其中的“贡献”而引发的任何直接或间接损失承担责任,不论因何种原因导致或者基于何种法律理论,即使其曾被建议有此种损失的可能性。
6. 语言
“本许可证”以中英文双语表述,中英文版本具有同等法律效力。如果中英文版本存在任何冲突不一致,以中文版为准。
条款结束
如何将木兰宽松许可证第2版应用到您的软件
如果您希望将木兰宽松许可证第2版应用到您的新软件为了方便接收者查阅建议您完成如下三步
1 请您补充如下声明中的空白,包括软件名、软件的首次发表年份以及您作为版权人的名字;
2 请您在软件包的一级目录下创建以“LICENSE”为名的文件将整个许可证文本放入该文件中
3 请将如下声明文本放入每个源文件的头部注释中。
Copyright (c) [Year] [name of copyright holder]
[Software Name] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
Mulan Permissive Software LicenseVersion 2
Mulan Permissive Software LicenseVersion 2 (Mulan PSL v2)
January 2020 http://license.coscl.org.cn/MulanPSL2
Your reproduction, use, modification and distribution of the Software shall be subject to Mulan PSL v2 (this License) with the following terms and conditions:
0. Definition
Software means the program and related documents which are licensed under this License and comprise all Contribution(s).
Contribution means the copyrightable work licensed by a particular Contributor under this License.
Contributor means the Individual or Legal Entity who licenses its copyrightable work under this License.
Legal Entity means the entity making a Contribution and all its Affiliates.
Affiliates means entities that control, are controlled by, or are under common control with the acting entity under this License, control means direct or indirect ownership of at least fifty percent (50%) of the voting power, capital or other securities of controlled or commonly controlled entity.
1. Grant of Copyright License
Subject to the terms and conditions of this License, each Contributor hereby grants to you a perpetual, worldwide, royalty-free, non-exclusive, irrevocable copyright license to reproduce, use, modify, or distribute its Contribution, with modification or not.
2. Grant of Patent License
Subject to the terms and conditions of this License, each Contributor hereby grants to you a perpetual, worldwide, royalty-free, non-exclusive, irrevocable (except for revocation under this Section) patent license to make, have made, use, offer for sale, sell, import or otherwise transfer its Contribution, where such patent license is only limited to the patent claims owned or controlled by such Contributor now or in future which will be necessarily infringed by its Contribution alone, or by combination of the Contribution with the Software to which the Contribution was contributed. The patent license shall not apply to any modification of the Contribution, and any other combination which includes the Contribution. If you or your Affiliates directly or indirectly institute patent litigation (including a cross claim or counterclaim in a litigation) or other patent enforcement activities against any individual or entity by alleging that the Software or any Contribution in it infringes patents, then any patent license granted to you under this License for the Software shall terminate as of the date such litigation or activity is filed or taken.
3. No Trademark License
No trademark license is granted to use the trade names, trademarks, service marks, or product names of Contributor, except as required to fulfill notice requirements in Section 4.
4. Distribution Restriction
You may distribute the Software in any medium with or without modification, whether in source or executable forms, provided that you provide recipients with a copy of this License and retain copyright, patent, trademark and disclaimer statements in the Software.
5. Disclaimer of Warranty and Limitation of Liability
THE SOFTWARE AND CONTRIBUTION IN IT ARE PROVIDED WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED. IN NO EVENT SHALL ANY CONTRIBUTOR OR COPYRIGHT HOLDER BE LIABLE TO YOU FOR ANY DAMAGES, INCLUDING, BUT NOT LIMITED TO ANY DIRECT, OR INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING FROM YOUR USE OR INABILITY TO USE THE SOFTWARE OR THE CONTRIBUTION IN IT, NO MATTER HOW ITS CAUSED OR BASED ON WHICH LEGAL THEORY, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
6. Language
THIS LICENSE IS WRITTEN IN BOTH CHINESE AND ENGLISH, AND THE CHINESE VERSION AND ENGLISH VERSION SHALL HAVE THE SAME LEGAL EFFECT. IN THE CASE OF DIVERGENCE BETWEEN THE CHINESE AND ENGLISH VERSIONS, THE CHINESE VERSION SHALL PREVAIL.
END OF THE TERMS AND CONDITIONS
How to Apply the Mulan Permissive Software LicenseVersion 2 (Mulan PSL v2) to Your Software
To apply the Mulan PSL v2 to your work, for easy identification by recipients, you are suggested to complete following three steps:
i Fill in the blanks in following statement, including insert your software name, the year of the first publication of your software, and your name identified as the copyright owner;
ii Create a file named “LICENSE” which contains the whole context of this License in the first directory of your software package;
iii Attach the statement to the appropriate annotated syntax at the beginning of each source file.
Copyright (c) [Year] [name of copyright holder]
[Software Name] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.

@ -0,0 +1,36 @@
# fast_sent
#### Description
{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**}
#### Software Architecture
Software architecture description
#### Installation
1. xxxx
2. xxxx
3. xxxx
#### Instructions
1. xxxx
2. xxxx
3. xxxx
#### Contribution
1. Fork the repository
2. Create Feat_xxx branch
3. Commit your code
4. Create Pull Request
#### Gitee Feature
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
4. The most valuable open source project [GVP](https://gitee.com/gvp)
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)

@ -0,0 +1,39 @@
# fast_sent
#### 介绍
{**以下是 Gitee 平台说明,您可以替换此简介**
Gitee 是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN。专为开发者提供稳定、高效、安全的云端软件开发协作平台
无论是个人、团队、或是企业,都能够用 Gitee 实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)}
#### 软件架构
软件架构说明
#### 安装教程
1. xxxx
2. xxxx
3. xxxx
#### 使用说明
1. xxxx
2. xxxx
3. xxxx
#### 参与贡献
1. Fork 本仓库
2. 新建 Feat_xxx 分支
3. 提交代码
4. 新建 Pull Request
#### 特技
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com)
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目
4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目
5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save