Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent missing source file errors caused by disabled macros #140

Open
wants to merge 201 commits into
base: dev
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
201 commits
Select commit Hold shift + click to select a range
070771e
HP-Socket v 3.1.1
ldcsaa Dec 24, 2013
a11bde2
Merge branch 'master' of github.com:ldcsaa/HP-Socket
ldcsaa Dec 24, 2013
b47b51e
HP-Socket v3.1.1 Released
ldcsaa Dec 24, 2013
a634d16
Merge branch 'master' of github.com:ldcsaa/HP-Socket
ldcsaa Dec 24, 2013
b32bd41
Merge branch 'master' of github.com:ldcsaa/HP-Socket
ldcsaa Dec 24, 2013
be8bfc8
Merge branch 'master' of github.com:ldcsaa/HP-Socket
ldcsaa Jan 13, 2014
e599eb9
Merge branch 'master' of github.com:ldcsaa/HP-Socket
ldcsaa Dec 24, 2013
d9d1271
Merge branch 'master' of github.com:ldcsaa/HP-Socket
ldcsaa Dec 24, 2013
5dc9362
Merge branch 'master' of github.com:ldcsaa/HP-Socket
ldcsaa Dec 24, 2013
5ee0c2a
Merge branch 'master' of github.com:ldcsaa/HP-Socket
ldcsaa Jan 14, 2014
5612564
HP-Socket v3.1.3
ldcsaa Mar 29, 2014
6447166
Merge branch 'master' of github.com:ldcsaa/HP-Socket
ldcsaa Mar 29, 2014
83eef40
clear old other language demo
ldcsaa Apr 17, 2014
0bedf04
0417
ldcsaa Apr 17, 2014
d7c3d00
0407
ldcsaa Apr 17, 2014
b81e191
0417
ldcsaa Apr 17, 2014
7b7d7f6
0417
ldcsaa Apr 17, 2014
6e8b82d
20140427
ldcsaa Apr 26, 2014
0660e92
20140427
ldcsaa Apr 26, 2014
91e7108
20140427
ldcsaa Apr 26, 2014
55489c2
20140427
ldcsaa Apr 26, 2014
4fcd78e
20140427
ldcsaa Apr 26, 2014
4d35e50
20140427
ldcsaa Apr 26, 2014
660e980
20040427
ldcsaa Apr 27, 2014
6f7595b
20040427
ldcsaa Apr 27, 2014
078861c
20140428
ldcsaa Apr 28, 2014
dee1c00
20140507
ldcsaa May 6, 2014
d07938e
delete
ldcsaa May 11, 2014
5d1ba7d
20140511
ldcsaa May 11, 2014
bbab911
20140511
ldcsaa May 11, 2014
474885c
20140526
ldcsaa May 25, 2014
c171507
20140604
ldcsaa Jun 4, 2014
96032d0
20140604
ldcsaa Jun 4, 2014
6b0e640
20140604
ldcsaa Jun 6, 2014
d731b01
20140707
ldcsaa Jul 6, 2014
d2c5ea3
20140707
ldcsaa Jul 6, 2014
d6251b0
20140707
ldcsaa Jul 7, 2014
d3e903a
20140708
ldcsaa Jul 8, 2014
20d5bca
20140708
ldcsaa Jul 8, 2014
0c478d0
20140812
ldcsaa Aug 12, 2014
455edce
20140812
ldcsaa Aug 12, 2014
2f89905
20140812
ldcsaa Aug 12, 2014
919a6c3
20140812
ldcsaa Aug 13, 2014
668dd66
20140812
ldcsaa Aug 13, 2014
9a2f863
20140812
ldcsaa Aug 13, 2014
c724890
20140812
ldcsaa Aug 13, 2014
1019f46
20141208
ldcsaa Dec 7, 2014
b95bb5f
20141208
ldcsaa Dec 7, 2014
534126a
20141208
ldcsaa Dec 7, 2014
34f9fe3
20141208
ldcsaa Dec 8, 2014
975112d
20141227
ldcsaa Dec 27, 2014
37f51ff
20141227
ldcsaa Dec 28, 2014
193f979
20150125
ldcsaa Jan 25, 2015
a46b530
20151028
ldcsaa Jan 28, 2015
2cdb396
20150129
ldcsaa Jan 29, 2015
21412dc
20150202
ldcsaa Feb 2, 2015
08fa5ca
20150203
ldcsaa Feb 3, 2015
cf7d517
20150205
ldcsaa Feb 5, 2015
a1207e2
20150209
ldcsaa Feb 9, 2015
e14ed68
20151130
Nov 30, 2015
74f6824
20151130
Nov 30, 2015
ded870d
20151130
Nov 30, 2015
c4eba2d
20151201
Dec 1, 2015
6476ca2
20160327
ldcsaa Mar 27, 2016
8bbd5be
20160327
ldcsaa Mar 27, 2016
005e154
20160401
ldcsaa Mar 31, 2016
6c78a87
20160402
ldcsaa Apr 1, 2016
1106c9c
20160409
Apr 9, 2016
587689c
20160409
Apr 9, 2016
5f312bc
20160409
Apr 9, 2016
5c46195
20160409
ldcsaa Apr 9, 2016
e3f2803
20160410
ldcsaa Apr 9, 2016
b615862
20160420
Apr 20, 2016
df83997
20160420
Apr 20, 2016
198c03e
20160421
Apr 21, 2016
0b211d4
20160421
Apr 21, 2016
7450e29
20160421
Apr 21, 2016
498460d
20160421
Apr 21, 2016
b77aee1
20160421
ldcsaa Apr 21, 2016
8ca9a21
20160422
Apr 22, 2016
86de95a
20160510
May 10, 2016
8064475
20160510
May 10, 2016
5818be1
20160510
May 10, 2016
595cfdb
20160524
May 24, 2016
846d0e5
20160524
May 24, 2016
bf92346
20160701
Jul 1, 2016
61cd69d
20160701
Jul 1, 2016
3290c81
20160701
Jul 1, 2016
b73c6b3
20160701
Jul 1, 2016
7417178
20160704
Jul 4, 2016
b58c2d9
20160704
Jul 4, 2016
f5754f9
21060812
Aug 12, 2016
0a0de70
21060812
Aug 12, 2016
0ad5d32
20160819
ldcsaa Aug 29, 2016
e9098d2
20160820
ldcsaa Aug 29, 2016
e762e2f
20160830
Aug 30, 2016
f848078
20160830
Aug 30, 2016
0f29c34
20160830
Aug 30, 2016
b2a0d85
20161012
Oct 12, 2016
b59da77
20161012
Oct 12, 2016
982cedc
20161130
Nov 30, 2016
ab3fba2
20161130
Nov 30, 2016
f34f703
20161202
Dec 2, 2016
6cc8dd0
20170101
Dec 27, 2016
01dab3b
20170101
Dec 27, 2016
36be06a
20170101
Dec 28, 2016
63eca7a
20170118
Jan 18, 2017
01e78de
20170120
Jan 20, 2017
48035de
20170120
Jan 20, 2017
8a81324
Merge branch 'master' of https://github.com/ldcsaa/HP-Socket
Apr 13, 2017
2864aa9
20170413
Apr 13, 2017
c96a3a7
20170413
Apr 13, 2017
79702dd
20170419
Apr 17, 2017
2326d41
20170419
Apr 17, 2017
3b6c099
20170424
Apr 24, 2017
2880e68
20170424
Apr 24, 2017
e3b197f
20170715
Jul 15, 2017
a8a265b
20170715
Jul 15, 2017
3a02cfc
20170717
Jul 17, 2017
937f692
20170717
Jul 17, 2017
27b335a
20170821
Aug 21, 2017
5d37205
20170821
Aug 21, 2017
a12818b
20170821
Aug 21, 2017
54db647
20170827
Aug 28, 2017
042e14c
20170925
ldcsaa Sep 24, 2017
9a957c9
20170926
Sep 26, 2017
cb6d688
20171205
Dec 5, 2017
8e60ab3
20171205
Dec 5, 2017
b24c162
20171205
Dec 5, 2017
6ae8da7
20171205
Dec 5, 2017
96a3fa2
Update README.md
ldcsaa Dec 12, 2017
082f6a3
20171214
Dec 14, 2017
1a9188b
20171214
Dec 14, 2017
e8ab250
20171214
Dec 14, 2017
35a9177
1214
Dec 14, 2017
f64bb22
20171214
Dec 14, 2017
6d4562a
20180201
ldcsaa Jan 31, 2018
e3b2531
Update README.md
ldcsaa Feb 3, 2018
dd6e78a
20180503
May 3, 2018
9544e06
20180503
May 3, 2018
c0ef5f8
20180520
May 19, 2018
3e6b499
20180520
May 19, 2018
a106380
20180526
ldcsaa May 26, 2018
b3909b7
20180625
Jun 25, 2018
c9650a5
20180625
Jun 25, 2018
2e72315
20180905
Sep 4, 2018
73c919b
20180905
Sep 4, 2018
0c77d21
20181101
Nov 1, 2018
b32439c
20181101
Nov 1, 2018
cc15817
20181102
Nov 2, 2018
a81f255
20181005
Nov 5, 2018
38fe74a
20181105
Nov 5, 2018
b199da9
20181203
Dec 3, 2018
7351504
20181203
Dec 3, 2018
b3f6a1c
20181206
ldcsaa Dec 6, 2018
ff5eede
20181207
Dec 7, 2018
b846a7b
20190304
Mar 4, 2019
758e384
20190414
ldcsaa Apr 13, 2019
ad0b202
20190414
ldcsaa Apr 13, 2019
965c274
20190414
ldcsaa Apr 13, 2019
7d7df69
20190414
ldcsaa Apr 13, 2019
c449b74
20190414
ldcsaa Apr 14, 2019
bbca407
20190414
ldcsaa Apr 14, 2019
305465a
20190415
Apr 15, 2019
ecc071e
20190415
ldcsaa Apr 15, 2019
7191940
Merge branch 'master' of https://github.com/ldcsaa/HP-Socket
ldcsaa Apr 15, 2019
0ca7e19
20190415
Apr 16, 2019
ec556a7
20190417
Apr 17, 2019
64c9154
20190420
ldcsaa Apr 20, 2019
48e969d
20190420
ldcsaa Apr 20, 2019
6536ede
20190422
Apr 22, 2019
462a43d
20190422
ldcsaa Apr 22, 2019
70d356e
20190424
Apr 24, 2019
7645eac
20190507
May 7, 2019
e42138c
20190511
ldcsaa May 11, 2019
48add50
20190522
ldcsaa May 21, 2019
4903ee5
20190522
May 22, 2019
3a79026
20190523
May 23, 2019
ac06885
20190701
Jul 1, 2019
d2aec6f
20190702
Jul 2, 2019
4d50bfb
20190704
ldcsaa Jul 3, 2019
91f9e44
20190704
Jul 4, 2019
ae089f7
20190709
Jul 9, 2019
4a29ee0
20190923
ldcsaa Sep 22, 2019
5151e52
20190923
ldcsaa Sep 22, 2019
69ba53f
20190923
ldcsaa Sep 22, 2019
a363c55
20191104
ldcsaa Nov 4, 2019
a02d050
20191105
Nov 5, 2019
6aec97b
20191203
Dec 3, 2019
4416afe
20191203
Dec 3, 2019
c5c293e
20191204
Dec 4, 2019
7cd0577
20191209
ldcsaa Dec 9, 2019
8f78daa
20191218
ldcsaa Dec 18, 2019
7f83bf3
20200104
ldcsaa Jan 4, 2020
9a58c2d
20200109
ldcsaa Jan 9, 2020
1a9e9f6
20200222
ldcsaa Feb 22, 2020
81d18c7
20200420
ldcsaa Apr 20, 2020
60d4456
20200425
ldcsaa Apr 25, 2020
cd91070
20200429
ldcsaa Apr 29, 2020
a822e7e
20200506
ldcsaa May 6, 2020
0ab051b
Prevent missing resource file errors caused by disabled macros
Oct 3, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
65 changes: 65 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
###############################################################################
# Set default behavior to automatically normalize line endings.
###############################################################################
* text=auto

###############################################################################
# Set default behavior for command prompt diff.
#
# This is need for earlier builds of msysgit that does not have it on by
# default for csharp files.
# Note: This is only used by command line
###############################################################################
#*.cs diff=csharp

###############################################################################
# Set the merge driver for project and solution files
#
# Merging from the command prompt will add diff markers to the files if there
# are conflicts (Merging from VS is not affected by the settings below, in VS
# the diff markers are never inserted). Diff markers may cause the following
# file extensions to fail to load in VS. An alternative would be to treat
# these files as binary and thus will always conflict and require user
# intervention with every merge. To do so, just uncomment the entries below
###############################################################################
#*.sln merge=binary
#*.csproj merge=binary
#*.vbproj merge=binary
#*.vcxproj merge=binary
#*.vcproj merge=binary
#*.dbproj merge=binary
#*.fsproj merge=binary
#*.lsproj merge=binary
#*.wixproj merge=binary
#*.modelproj merge=binary
#*.sqlproj merge=binary
#*.wwaproj merge=binary

###############################################################################
# behavior for image files
#
# image files are treated as binary by default.
###############################################################################
#*.jpg binary
#*.png binary
#*.gif binary

###############################################################################
# diff behavior for common document formats
#
# Convert binary document formats to text before diffing them. This feature
# is only available from the command line. Turn it on by uncommenting the
# entries below.
###############################################################################
#*.doc diff=astextplain
#*.DOC diff=astextplain
#*.docx diff=astextplain
#*.DOCX diff=astextplain
#*.dot diff=astextplain
#*.DOT diff=astextplain
#*.pdf diff=astextplain
#*.PDF diff=astextplain
#*.rtf diff=astextplain
#*.RTF diff=astextplain

*.sh text eol=lf
52 changes: 46 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,53 @@
# Compiled Object files
# Compiled Object files
*.slo
*.lo
*.o
*.pdb
*.exp
*.idb
*.ipdb
*.iobj
*.ilk
*.obj
*.log
*.tlog
*.cki
*.exe.config

# Compiled Dynamic libraries
*.so
*.dylib
#*.so
#*.dylib

# Compiled Static libraries
*.lai
*.la
*.a
#*.lai
#*.la
#*.a

# Intermediate directorys
Static/
static/
Debug/
debug/
!Windows/Common/Src/Debug/
!Windows/Common/Src/debug/
!Windows/Other Languages/C#/HPSocketCS/bin/x86/Debug/
!Windows/Other Languages/C#/HPSocketCS/bin/x64/Debug/
Obj/
obj/
tlog/
log/
readme/

# IDE Internal Files
*.xml
*.layout
*.sdf
*.VC.db
*.opendb
*.aps
*.swp
*.suo
.vs/

# include directory symbolic link files
Linux/lib/**/*.so.*
Binary file added Doc/ARQ Sequence Diagram.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Doc/Basic Component.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
48 changes: 48 additions & 0 deletions Doc/Example.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
#include <hpsocket/HPSocket4C.h>

// 5. process network events
EnHandleResult __HP_CALL OnConnect(HP_Agent pSender, HP_CONNID dwConnID);
EnHandleResult __HP_CALL OnReceive(HP_Agent pSender, HP_CONNID dwConnID, int iLength);
EnHandleResult __HP_CALL OnSend(HP_Agent pSender, HP_CONNID dwConnID, const BYTE* pData, int iLength);
EnHandleResult __HP_CALL OnClose(HP_Agent pSender, HP_CONNID dwConnID, En_HP_SocketOperation enOperation, int iErrorCode);
EnHandleResult __HP_CALL OnShutdown(HP_Agent pSender);

int main(int argc, char* const argv[])
{
HP_TcpPullAgentListener s_listener;
HP_TcpPullAgent s_agent;

// 1. Create listener object
s_listener = ::Create_HP_TcpPullAgentListener();
// 2. Create component object (and binding with listener object)
s_agent = ::Create_HP_TcpPullAgent(s_listener);

/* Set listener callbacks */
::HP_Set_FN_Agent_OnConnect(s_listener, OnConnect);
::HP_Set_FN_Agent_OnSend(s_listener, OnSend);
::HP_Set_FN_Agent_OnPullReceive(s_listener, OnReceive);
::HP_Set_FN_Agent_OnClose(s_listener, OnClose);
::HP_Set_FN_Agent_OnShutdown(s_listener, OnShutdown);

// 3. Start component object
if(::HP_Agent_HasStarted(s_agent))
exit(1);

// 4. Connect to dest host
::HP_Agent_Connect(s_agent, "remote.host.1", REMOTE_PORT_1, nullptr);
::HP_Agent_Connect(s_agent, "remote.host.2", REMOTE_PORT_2, nullptr);
::HP_Agent_Connect(s_agent, "remote.host.3", REMOTE_PORT_3, nullptr);

/* wait for exit */
// ... ...

// 6. (optional) Stop component object
::HP_Agent_Stop(s_agent);

// 7. Destroy component object
::Destroy_HP_TcpPullAgent(s_agent);
// 8. Destroy listener object
::Destroy_HP_TcpPullAgentListener(s_listener);

return 0;
}
39 changes: 39 additions & 0 deletions Doc/Example.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#include <hpsocket/HPSocket.h>

/* Listener Class */
class CListenerImpl : public CTcpPullServerListener
{

public:
// 5. process network events
virtual EnHandleResult OnPrepareListen(ITcpServer* pSender, SOCKET soListen);
virtual EnHandleResult OnAccept(ITcpServer* pSender, CONNID dwConnID, UINT_PTR soClient);
virtual EnHandleResult OnHandShake(ITcpServer* pSender, CONNID dwConnID);
virtual EnHandleResult OnReceive(ITcpServer* pSender, CONNID dwConnID, int iLength);
virtual EnHandleResult OnSend(ITcpServer* pSender, CONNID dwConnID, const BYTE* pData, int iLength);
virtual EnHandleResult OnClose(ITcpServer* pSender, CONNID dwConnID, EnSocketOperation enOperation, int iErrorCode);
virtual EnHandleResult OnShutdown(ITcpServer* pSender);
};

int main(int argc, char* const argv[])
{
// 1. Create listener object
CListenerImpl s_listener;
// 2. Create component object (and binding with listener object)
CTcpPullServerPtr s_pserver(&s_listener);

// 3. Start component object
if(!s_pserver->Start("0.0.0.0", 5555))
exit(1);

/* wait for exit */
// ... ...

// 6. (optional) Stop component object
s_pserver->Stop();

return 0;

// 7. Destroy component object automatically
// 8. Destroy listener object automatically
}
Binary file added Doc/HP-Socket ARQ Class Diagram.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Doc/HP-Socket Class Diagram.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading