Skip to content

Commit e041ccb

Browse files
committed
source repository migrate from google code to github
1 parent 17eb411 commit e041ccb

20 files changed

+842
-143
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/bin
2+
/out
3+
/tmp

LICENSE

+674
Large diffs are not rendered by default.

README.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Sokit
2+
3+
Sokit is a TCP & UDP package send/receive/transfer tool, Write in c++ with qt under Windows and Linux.
4+
5+
6+
7+
8+
9+
License
10+
-------
11+
Sokit is licensed under GNU GPLv3 - see the ``LICENSE`` file.

build/linux86/qtcreator/sokit.pro

+127-122
Original file line numberDiff line numberDiff line change
@@ -1,122 +1,127 @@
1-
# ----------------------------------------------------
2-
# sokit.pro
3-
# ----------------------------------------------------
4-
5-
TEMPLATE = app
6-
TARGET = sokit
7-
8-
QT += gui network
9-
CONFIG += debug_and_release build_all thread
10-
DEFINES += QT_NETWORK_LIB
11-
INCLUDEPATH += . ./../../../tmp ./../../../src/sokit
12-
DEPENDPATH += .
13-
UI_DIR += ./../../../tmp
14-
RCC_DIR += ./../../../tmp
15-
16-
win32 {
17-
DEFINES += QT_LARGEFILE_SUPPORT
18-
CONFIG += windows qt_static
19-
20-
QMAKE_CFLAGS_MT =-MT
21-
QMAKE_CFLAGS_MT_DBG =-MTd
22-
QMAKE_CFLAGS_MT_DLL =-MD
23-
QMAKE_CFLAGS_MT_DLLDBG =-MDd
24-
}
25-
26-
CONFIG(debug, debug|release) {
27-
DESTDIR = ../../../bin/debug
28-
MOC_DIR += ./../../../tmp/debug
29-
OBJECTS_DIR += ./../../../tmp/debug
30-
INCLUDEPATH += ./../../../tmp/debug
31-
32-
QMAKE_CFLAGS_DEBUG = $$unique(QMAKE_CFLAGS_DEBUG)
33-
QMAKE_CXXFLAGS_DEBUG = $$unique(QMAKE_CFLAGS_DEBUG)
34-
35-
CONFIG(qt_static) {
36-
QMAKE_CFLAGS_DEBUG -= $$QMAKE_CFLAGS_MT_DLLDBG
37-
QMAKE_CFLAGS_DEBUG += $$QMAKE_CFLAGS_MT_DBG
38-
QMAKE_CXXFLAGS_DEBUG -= $$QMAKE_CFLAGS_MT_DLLDBG
39-
QMAKE_CXXFLAGS_DEBUG += $$QMAKE_CFLAGS_MT_DBG
40-
} else {
41-
QMAKE_CFLAGS_DEBUG -= $$QMAKE_CFLAGS_MT_DBG
42-
QMAKE_CFLAGS_DEBUG += $$QMAKE_CFLAGS_MT_DLLDBG
43-
QMAKE_CXXFLAGS_DEBUG -= $$QMAKE_CFLAGS_MT_DBG
44-
QMAKE_CXXFLAGS_DEBUG += $$QMAKE_CFLAGS_MT_DLLDBG
45-
}
46-
} else {
47-
DESTDIR = ../../../bin/release
48-
MOC_DIR += ./../../../tmp/release
49-
OBJECTS_DIR += ./../../../tmp/release
50-
INCLUDEPATH += ./../../../tmp/release
51-
52-
QMAKE_CFLAGS_RELEASE = $$unique(QMAKE_CFLAGS_RELEASE)
53-
QMAKE_CXXFLAGS_RELEASE = $$unique(QMAKE_CXXFLAGS_RELEASE)
54-
55-
CONFIG(qt_static) {
56-
QMAKE_CFLAGS_RELEASE -= $$QMAKE_CFLAGS_MT_DLL
57-
QMAKE_CFLAGS_RELEASE += $$QMAKE_CFLAGS_MT
58-
QMAKE_CXXFLAGS_RELEASE -= $$QMAKE_CFLAGS_MT_DLL
59-
QMAKE_CXXFLAGS_RELEASE += $$QMAKE_CFLAGS_MT
60-
} else {
61-
QMAKE_CFLAGS_RELEASE -= $$QMAKE_CFLAGS_MT
62-
QMAKE_CFLAGS_RELEASE += $$QMAKE_CFLAGS_MT_DLL
63-
QMAKE_CXXFLAGS_RELEASE -= $$QMAKE_CFLAGS_MT
64-
QMAKE_CXXFLAGS_RELEASE += $$QMAKE_CFLAGS_MT_DLL
65-
}
66-
}
67-
68-
HEADERS += ../../../src/sokit/resource.h \
69-
../../../src/sokit/setting.h \
70-
../../../src/sokit/toolkit.h \
71-
../../../src/sokit/baseform.h \
72-
../../../src/sokit/clientform.h \
73-
../../../src/sokit/clientskt.h \
74-
../../../src/sokit/helpform.h \
75-
../../../src/sokit/logger.h \
76-
../../../src/sokit/main.h \
77-
../../../src/sokit/notepadform.h \
78-
../../../src/sokit/transferskt.h \
79-
../../../src/sokit/transferform.h \
80-
../../../src/sokit/serverskt.h \
81-
../../../src/sokit/serverform.h
82-
SOURCES += ../../../src/sokit/baseform.cpp \
83-
../../../src/sokit/clientform.cpp \
84-
../../../src/sokit/clientskt.cpp \
85-
../../../src/sokit/helpform.cpp \
86-
../../../src/sokit/logger.cpp \
87-
../../../src/sokit/main.cpp \
88-
../../../src/sokit/notepadform.cpp \
89-
../../../src/sokit/serverform.cpp \
90-
../../../src/sokit/serverskt.cpp \
91-
../../../src/sokit/setting.cpp \
92-
../../../src/sokit/toolkit.cpp \
93-
../../../src/sokit/transferform.cpp \
94-
../../../src/sokit/transferskt.cpp
95-
FORMS += ../../../src/sokit/clientform.ui \
96-
../../../src/sokit/helpform.ui \
97-
../../../src/sokit/serverform.ui \
98-
../../../src/sokit/transferform.ui
99-
TRANSLATIONS += ../../../src/sokit/sokit.ts
100-
RESOURCES += ../../../src/sokit/icons.qrc
101-
102-
QMAKE_PRE_LINK = lupdate ./sokit.pro
103-
QMAKE_POST_LINK = lrelease ../../../src/sokit/sokit.ts -qm $$DESTDIR/sokit.lan
104-
105-
win32 {
106-
RC_FILE = ../../../src/sokit/sokit.rc
107-
LIBS += -lWs2_32 -lWinmm -lImm32
108-
QMAKE_LFLAGS_DEBUG += /PDB:"$$DESTDIR/sokit.pdb"
109-
QMAKE_CFLAGS_DEBUG += /Fd"$$OBJECTS_DIR/sokit.pdb"
110-
QMAKE_CXXFLAGS_DEBUG += /Fd"$$OBJECTS_DIR/sokit.pdb"
111-
112-
CONFIG(qt_static) {
113-
exists( $(QTDIR)/lib_s ) {
114-
QMAKE_LIBDIR_QT = $(QTDIR)/lib_s
115-
}
116-
} else {
117-
exists( $(QTDIR)/lib_d ) {
118-
QMAKE_LIBDIR_QT = $(QTDIR)/lib_d
119-
}
120-
}
121-
}
122-
1+
# ----------------------------------------------------
2+
# sokit.pro
3+
# ----------------------------------------------------
4+
5+
TEMPLATE = app
6+
TARGET = sokit
7+
8+
QT += gui widgets network
9+
CONFIG += debug_and_release build_all thread
10+
DEFINES += QT_NETWORK_LIB
11+
INCLUDEPATH += . ./../../../tmp ./../../../src/sokit
12+
DEPENDPATH += .
13+
UI_DIR += ./../../../tmp
14+
RCC_DIR += ./../../../tmp
15+
16+
win32 {
17+
DEFINES += QT_LARGEFILE_SUPPORT
18+
CONFIG += windows qt_static
19+
20+
QMAKE_CFLAGS_MT =-MT
21+
QMAKE_CFLAGS_MT_DBG =-MTd
22+
QMAKE_CFLAGS_MT_DLL =-MD
23+
QMAKE_CFLAGS_MT_DLLDBG =-MDd
24+
}
25+
26+
CONFIG(debug, debug|release) {
27+
DESTDIR = ../../../bin/debug
28+
MOC_DIR += ./../../../tmp/debug
29+
OBJECTS_DIR += ./../../../tmp/debug
30+
INCLUDEPATH += ./../../../tmp/debug
31+
32+
QMAKE_CFLAGS_DEBUG = $$unique(QMAKE_CFLAGS_DEBUG)
33+
QMAKE_CXXFLAGS_DEBUG = $$unique(QMAKE_CFLAGS_DEBUG)
34+
35+
CONFIG(qt_static) {
36+
QMAKE_CFLAGS_DEBUG -= $$QMAKE_CFLAGS_MT_DLLDBG
37+
QMAKE_CFLAGS_DEBUG += $$QMAKE_CFLAGS_MT_DBG
38+
QMAKE_CXXFLAGS_DEBUG -= $$QMAKE_CFLAGS_MT_DLLDBG
39+
QMAKE_CXXFLAGS_DEBUG += $$QMAKE_CFLAGS_MT_DBG
40+
} else {
41+
QMAKE_CFLAGS_DEBUG -= $$QMAKE_CFLAGS_MT_DBG
42+
QMAKE_CFLAGS_DEBUG += $$QMAKE_CFLAGS_MT_DLLDBG
43+
QMAKE_CXXFLAGS_DEBUG -= $$QMAKE_CFLAGS_MT_DBG
44+
QMAKE_CXXFLAGS_DEBUG += $$QMAKE_CFLAGS_MT_DLLDBG
45+
}
46+
} else {
47+
DESTDIR = ../../../bin/release
48+
MOC_DIR += ./../../../tmp/release
49+
OBJECTS_DIR += ./../../../tmp/release
50+
INCLUDEPATH += ./../../../tmp/release
51+
52+
QMAKE_CFLAGS_RELEASE = $$unique(QMAKE_CFLAGS_RELEASE)
53+
QMAKE_CXXFLAGS_RELEASE = $$unique(QMAKE_CXXFLAGS_RELEASE)
54+
55+
CONFIG(qt_static) {
56+
QMAKE_CFLAGS_RELEASE -= $$QMAKE_CFLAGS_MT_DLL
57+
QMAKE_CFLAGS_RELEASE += $$QMAKE_CFLAGS_MT
58+
QMAKE_CXXFLAGS_RELEASE -= $$QMAKE_CFLAGS_MT_DLL
59+
QMAKE_CXXFLAGS_RELEASE += $$QMAKE_CFLAGS_MT
60+
} else {
61+
QMAKE_CFLAGS_RELEASE -= $$QMAKE_CFLAGS_MT
62+
QMAKE_CFLAGS_RELEASE += $$QMAKE_CFLAGS_MT_DLL
63+
QMAKE_CXXFLAGS_RELEASE -= $$QMAKE_CFLAGS_MT
64+
QMAKE_CXXFLAGS_RELEASE += $$QMAKE_CFLAGS_MT_DLL
65+
}
66+
}
67+
68+
HEADERS += ../../../src/sokit/resource.h \
69+
../../../src/sokit/setting.h \
70+
../../../src/sokit/toolkit.h \
71+
../../../src/sokit/baseform.h \
72+
../../../src/sokit/clientform.h \
73+
../../../src/sokit/clientskt.h \
74+
../../../src/sokit/helpform.h \
75+
../../../src/sokit/logger.h \
76+
../../../src/sokit/main.h \
77+
../../../src/sokit/notepadform.h \
78+
../../../src/sokit/transferskt.h \
79+
../../../src/sokit/transferform.h \
80+
../../../src/sokit/serverskt.h \
81+
../../../src/sokit/serverform.h
82+
SOURCES += ../../../src/sokit/baseform.cpp \
83+
../../../src/sokit/clientform.cpp \
84+
../../../src/sokit/clientskt.cpp \
85+
../../../src/sokit/helpform.cpp \
86+
../../../src/sokit/logger.cpp \
87+
../../../src/sokit/main.cpp \
88+
../../../src/sokit/notepadform.cpp \
89+
../../../src/sokit/serverform.cpp \
90+
../../../src/sokit/serverskt.cpp \
91+
../../../src/sokit/setting.cpp \
92+
../../../src/sokit/toolkit.cpp \
93+
../../../src/sokit/transferform.cpp \
94+
../../../src/sokit/transferskt.cpp
95+
FORMS += ../../../src/sokit/clientform.ui \
96+
../../../src/sokit/helpform.ui \
97+
../../../src/sokit/serverform.ui \
98+
../../../src/sokit/transferform.ui
99+
TRANSLATIONS += ../../../src/sokit/sokit.ts
100+
RESOURCES += ../../../src/sokit/icons.qrc
101+
102+
QMAKE_PRE_LINK = lupdate $$PWD/sokit.pro
103+
QMAKE_POST_LINK = lrelease ../../../src/sokit/sokit.ts -qm $$DESTDIR/sokit.lan
104+
105+
win32 {
106+
RC_FILE = ../../../src/sokit/sokit.rc
107+
LIBS += -lWs2_32 -lWinmm -lImm32
108+
QMAKE_LFLAGS_DEBUG += /PDB:"$$DESTDIR/sokit.pdb"
109+
QMAKE_CFLAGS_DEBUG += /Fd"$$OBJECTS_DIR/sokit.pdb"
110+
QMAKE_CXXFLAGS_DEBUG += /Fd"$$OBJECTS_DIR/sokit.pdb"
111+
112+
CONFIG(qt_static) {
113+
exists( $(QTDIR)/lib_s ) {
114+
QMAKE_LIBDIR_QT = $(QTDIR)/lib_s
115+
}
116+
} else {
117+
exists( $(QTDIR)/lib_d ) {
118+
QMAKE_LIBDIR_QT = $(QTDIR)/lib_d
119+
}
120+
}
121+
}
122+
123+
OTHER_FILES += \
124+
../../../src/sokit/sokit.ts \
125+
../../../LICENSE \
126+
../../../README.md
127+

doc/sokit/change.log

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
2015-05-07 sinpowei<[email protected]>
2+
version 1.3.1
3+
build with QT v5.3.2
4+
5+
Source code repository migrated from Google Code to GitHub
6+
17
2011-11-30 sinpowei<[email protected]>
28
version 1.3
39
build with QT v4.7.2

doc/sokit/readme.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
sokit.lan is language file, if rename or delete it, then use default english UI
22

3-
F1 for more help or go http://code.google.com/p/sokit/ for sourcecode
3+
F1 for more help or go https://github.com/sinpolib/sokit/ for sourcecode

src/sokit/baseform.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#define PROP_DIRT "dirt"
1717
#define PROP_TARG "targ"
1818

19-
BaseForm::BaseForm(QWidget* p, Qt::WFlags f)
19+
BaseForm::BaseForm(QWidget* p, Qt::WindowFlags f)
2020
:QWidget(p, f),m_cntRecv(0),m_cntSend(0),m_labRecv(0),m_labSend(0),m_cnlist(0)
2121
{
2222
}

src/sokit/baseform.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class BaseForm : public QWidget
1313
Q_OBJECT
1414

1515
public:
16-
BaseForm(QWidget* p=0, Qt::WFlags f=0);
16+
BaseForm(QWidget* p=0, Qt::WindowFlags f=0);
1717
virtual ~BaseForm();
1818

1919
bool init();

src/sokit/clientform.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
#define SET_VAL_LGCLT "log_client"
1313

14-
ClientForm::ClientForm(QWidget* p, Qt::WFlags f)
14+
ClientForm::ClientForm(QWidget* p, Qt::WindowFlags f)
1515
:BaseForm(p, f),m_client(0)
1616
{
1717
m_ui.setupUi(this);

src/sokit/clientform.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class ClientForm : public BaseForm
1010
Q_OBJECT
1111

1212
public:
13-
ClientForm(QWidget* p=0, Qt::WFlags f=0);
13+
ClientForm(QWidget* p=0, Qt::WindowFlags f=0);
1414
virtual ~ClientForm();
1515

1616
protected:

src/sokit/helpform.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include <QShortcut>
66
#include <QTextStream>
77

8-
HelpForm::HelpForm(QWidget* p, Qt::WFlags f):QDialog(p, f)
8+
HelpForm::HelpForm(QWidget* p, Qt::WindowFlags f):QDialog(p, f)
99
{
1010
m_ui.setupUi(this);
1111
init();

src/sokit/helpform.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class HelpForm : public QDialog
88
Q_OBJECT
99

1010
public:
11-
HelpForm(QWidget* p=0, Qt::WFlags f=0);
11+
HelpForm(QWidget* p=0, Qt::WindowFlags f=0);
1212
virtual ~HelpForm();
1313

1414
private:

src/sokit/helpform.ui

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ p, li { white-space: pre-wrap; }
5353
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-weight:400; font-style:normal;&quot;&gt;
5454
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;sokit&lt;/span&gt;&lt;/p&gt;
5555
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; &quot;&gt;&lt;/p&gt;
56-
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; &quot;&gt;freeware version: 1.3 (GPLv3)&lt;/span&gt;&lt;/p&gt;
57-
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; &quot;&gt;website: http://code.google.com/p/sokit/&lt;/span&gt;&lt;/p&gt;
56+
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; &quot;&gt;freeware version: 1.3.1 (GPLv3)&lt;/span&gt;&lt;/p&gt;
57+
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; &quot;&gt;website: https://github.com/sinpolib/sokit/&lt;/span&gt;&lt;/p&gt;
5858
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; &quot;&gt;email: [email protected]&lt;/span&gt;&lt;/p&gt;
5959
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; &quot;&gt;&lt;/p&gt;
6060
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; &quot;&gt;this is a TCP / UDP package send &amp;amp; receive &amp;amp; transfer tool&lt;/span&gt;&lt;/p&gt;

src/sokit/notepadform.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
#define SET_NP_FILE "sokit.txt"
1212

13-
NotepadForm::NotepadForm(QWidget* p, Qt::WFlags f)
13+
NotepadForm::NotepadForm(QWidget* p, Qt::WindowFlags f)
1414
:QWidget(p, f)
1515
{
1616
setupUi();
@@ -99,4 +99,4 @@ void NotepadForm::jumptab()
9999
p->setCurrentIndex(cur);
100100
}
101101
}
102-
}
102+
}

src/sokit/notepadform.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class NotepadForm : public QWidget
88
Q_OBJECT
99

1010
public:
11-
NotepadForm(QWidget* p=0, Qt::WFlags f=0);
11+
NotepadForm(QWidget* p=0, Qt::WindowFlags f=0);
1212
virtual ~NotepadForm();
1313

1414
public:

src/sokit/serverform.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
#define SET_VAL_LGSVR "log_server"
1616

17-
ServerForm::ServerForm(QWidget *parent, Qt::WFlags flags)
17+
ServerForm::ServerForm(QWidget *parent, Qt::WindowFlags flags)
1818
: BaseForm(parent, flags)
1919
{
2020
m_ui.setupUi(this);

src/sokit/serverform.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class ServerForm : public BaseForm
1010
Q_OBJECT
1111

1212
public:
13-
ServerForm(QWidget* p=0, Qt::WFlags f=0);
13+
ServerForm(QWidget* p=0, Qt::WindowFlags f=0);
1414
virtual ~ServerForm();
1515

1616
protected:

0 commit comments

Comments
 (0)