Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
openairinterface5G
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dyyu
openairinterface5G
Commits
4787c975
Commit
4787c975
authored
Oct 07, 2016
by
Rohit Gupta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
delete files with GPL License + modify build scripts
parent
73aa2657
Changes
177
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
177 changed files
with
21 additions
and
44948 deletions
+21
-44948
CMakeLists.txt
cmake_targets/CMakeLists.txt
+1
-2
packet-mac-lte.h
common/utils/T/tracer/packet-mac-lte.h
+0
-14
Readme.doxy
openair2/DOCS/TEMPLATES/README/Readme.doxy
+0
-1
Ajp13Socket.cpp
...RM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/Ajp13Socket.cpp
+0
-414
Ajp13Socket.h
.../RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/Ajp13Socket.h
+0
-81
AjpBaseSocket.cpp
..._4_RRC_LITE/src/foreign/sockets-2.3.9.4/AjpBaseSocket.cpp
+0
-268
AjpBaseSocket.h
...RM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/AjpBaseSocket.h
+0
-96
Base64.cpp
...ir2/RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/Base64.cpp
+0
-314
Base64.h
openair2/RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/Base64.h
+0
-85
Changelog
...air2/RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/Changelog
+0
-855
Debug.cpp
...air2/RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/Debug.cpp
+0
-103
Debug.h
openair2/RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/Debug.h
+0
-87
Event.cpp
...air2/RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/Event.cpp
+0
-93
Event.h
openair2/RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/Event.h
+0
-83
EventHandler.cpp
...M_4_RRC_LITE/src/foreign/sockets-2.3.9.4/EventHandler.cpp
+0
-209
EventHandler.h
...RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/EventHandler.h
+0
-88
EventTime.cpp
.../RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/EventTime.cpp
+0
-107
EventTime.h
...r2/RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/EventTime.h
+0
-84
Exception.cpp
.../RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/Exception.cpp
+0
-66
Exception.h
...r2/RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/Exception.h
+0
-74
File.cpp
openair2/RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/File.cpp
+0
-203
File.h
openair2/RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/File.h
+0
-95
FileStream.cpp
...RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/FileStream.cpp
+0
-60
FileStream.h
...2/RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/FileStream.h
+0
-62
HTTPSocket.cpp
...RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/HTTPSocket.cpp
+0
-519
HTTPSocket.h
...2/RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/HTTPSocket.h
+0
-175
HttpBaseSocket.cpp
...4_RRC_LITE/src/foreign/sockets-2.3.9.4/HttpBaseSocket.cpp
+0
-215
HttpBaseSocket.h
...M_4_RRC_LITE/src/foreign/sockets-2.3.9.4/HttpBaseSocket.h
+0
-90
HttpClientSocket.cpp
...RRC_LITE/src/foreign/sockets-2.3.9.4/HttpClientSocket.cpp
+0
-312
HttpClientSocket.h
...4_RRC_LITE/src/foreign/sockets-2.3.9.4/HttpClientSocket.h
+0
-139
HttpDebugSocket.cpp
..._RRC_LITE/src/foreign/sockets-2.3.9.4/HttpDebugSocket.cpp
+0
-144
HttpDebugSocket.h
..._4_RRC_LITE/src/foreign/sockets-2.3.9.4/HttpDebugSocket.h
+0
-76
HttpGetSocket.cpp
..._4_RRC_LITE/src/foreign/sockets-2.3.9.4/HttpGetSocket.cpp
+0
-114
HttpGetSocket.h
...RM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/HttpGetSocket.h
+0
-71
HttpPostSocket.cpp
...4_RRC_LITE/src/foreign/sockets-2.3.9.4/HttpPostSocket.cpp
+0
-295
HttpPostSocket.h
...M_4_RRC_LITE/src/foreign/sockets-2.3.9.4/HttpPostSocket.h
+0
-101
HttpPutSocket.cpp
..._4_RRC_LITE/src/foreign/sockets-2.3.9.4/HttpPutSocket.cpp
+0
-125
HttpPutSocket.h
...RM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/HttpPutSocket.h
+0
-88
HttpRequest.cpp
...RM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/HttpRequest.cpp
+0
-428
HttpRequest.h
.../RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/HttpRequest.h
+0
-145
HttpResponse.cpp
...M_4_RRC_LITE/src/foreign/sockets-2.3.9.4/HttpResponse.cpp
+0
-251
HttpResponse.h
...RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/HttpResponse.h
+0
-99
HttpTransaction.cpp
..._RRC_LITE/src/foreign/sockets-2.3.9.4/HttpTransaction.cpp
+0
-262
HttpTransaction.h
..._4_RRC_LITE/src/foreign/sockets-2.3.9.4/HttpTransaction.h
+0
-106
HttpdCookies.cpp
...M_4_RRC_LITE/src/foreign/sockets-2.3.9.4/HttpdCookies.cpp
+0
-287
HttpdCookies.h
...RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/HttpdCookies.h
+0
-94
HttpdForm.cpp
.../RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/HttpdForm.cpp
+0
-717
HttpdForm.h
...r2/RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/HttpdForm.h
+0
-147
HttpdSocket.cpp
...RM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/HttpdSocket.cpp
+0
-326
HttpdSocket.h
.../RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/HttpdSocket.h
+0
-117
IBase.h
openair2/RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/IBase.h
+0
-45
IEventHandler.h
...RM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/IEventHandler.h
+0
-78
IEventOwner.cpp
...RM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/IEventOwner.cpp
+0
-81
IEventOwner.h
.../RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/IEventOwner.h
+0
-82
IFile.h
openair2/RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/IFile.h
+0
-75
IFileUpload.h
.../RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/IFileUpload.h
+0
-61
IHttpServer.h
.../RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/IHttpServer.h
+0
-69
IMutex.h
openair2/RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/IMutex.h
+0
-58
ISocketHandler.h
...M_4_RRC_LITE/src/foreign/sockets-2.3.9.4/ISocketHandler.h
+0
-262
IStream.h
...air2/RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/IStream.h
+0
-61
Ipv4Address.cpp
...RM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/Ipv4Address.cpp
+0
-223
Ipv4Address.h
.../RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/Ipv4Address.h
+0
-111
Ipv6Address.cpp
...RM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/Ipv6Address.cpp
+0
-286
Ipv6Address.h
.../RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/Ipv6Address.h
+0
-120
Json.cpp
openair2/RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/Json.cpp
+0
-572
Json.h
openair2/RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/Json.h
+0
-102
ListenSocket.h
...RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/ListenSocket.h
+0
-511
Lock.cpp
openair2/RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/Lock.cpp
+0
-57
Lock.h
openair2/RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/Lock.h
+0
-62
Makefile.am
...r2/RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/Makefile.am
+0
-44
MemFile.cpp
...r2/RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/MemFile.cpp
+0
-349
MemFile.h
...air2/RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/MemFile.h
+0
-118
Mutex.cpp
...air2/RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/Mutex.cpp
+0
-83
Mutex.h
openair2/RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/Mutex.h
+0
-73
OSX.zip
openair2/RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/OSX.zip
+0
-0
Parse.cpp
...air2/RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/Parse.cpp
+0
-323
Parse.h
openair2/RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/Parse.h
+0
-108
README
openair2/RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/README
+0
-90
README.macosx
.../RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/README.macosx
+0
-9
ResolvServer.cpp
...M_4_RRC_LITE/src/foreign/sockets-2.3.9.4/ResolvServer.cpp
+0
-99
ResolvServer.h
...RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/ResolvServer.h
+0
-78
ResolvSocket.cpp
...M_4_RRC_LITE/src/foreign/sockets-2.3.9.4/ResolvSocket.cpp
+0
-442
ResolvSocket.h
...RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/ResolvSocket.h
+0
-120
SSLInitializer.cpp
...4_RRC_LITE/src/foreign/sockets-2.3.9.4/SSLInitializer.cpp
+0
-181
SSLInitializer.h
...M_4_RRC_LITE/src/foreign/sockets-2.3.9.4/SSLInitializer.h
+0
-97
SctpSocket.cpp
...RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/SctpSocket.cpp
+0
-506
SctpSocket.h
...2/RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/SctpSocket.h
+0
-122
Semaphore.cpp
.../RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/Semaphore.cpp
+0
-123
Semaphore.h
...r2/RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/Semaphore.h
+0
-100
SmtpdSocket.cpp
...RM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/SmtpdSocket.cpp
+0
-244
SmtpdSocket.h
.../RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/SmtpdSocket.h
+0
-171
Socket.cpp
...ir2/RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/Socket.cpp
+0
-1875
Socket.h
openair2/RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/Socket.h
+0
-735
SocketAddress.h
...RM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/SocketAddress.h
+0
-106
SocketHandler.cpp
..._4_RRC_LITE/src/foreign/sockets-2.3.9.4/SocketHandler.cpp
+0
-1419
SocketHandler.h
...RM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/SocketHandler.h
+0
-302
SocketHandlerEp.cpp
..._RRC_LITE/src/foreign/sockets-2.3.9.4/SocketHandlerEp.cpp
+0
-216
SocketHandlerEp.h
..._4_RRC_LITE/src/foreign/sockets-2.3.9.4/SocketHandlerEp.h
+0
-96
SocketHandlerThread.cpp
..._LITE/src/foreign/sockets-2.3.9.4/SocketHandlerThread.cpp
+0
-81
SocketHandlerThread.h
...RC_LITE/src/foreign/sockets-2.3.9.4/SocketHandlerThread.h
+0
-68
SocketStream.cpp
...M_4_RRC_LITE/src/foreign/sockets-2.3.9.4/SocketStream.cpp
+0
-69
SocketStream.h
...RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/SocketStream.h
+0
-67
SocketThread.cpp
...M_4_RRC_LITE/src/foreign/sockets-2.3.9.4/SocketThread.cpp
+0
-51
SocketThread.h
...RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/SocketThread.h
+0
-43
Sockets-config
...RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/Sockets-config
+0
-0
Sockets-config.cpp
...4_RRC_LITE/src/foreign/sockets-2.3.9.4/Sockets-config.cpp
+0
-121
StdLog.h
openair2/RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/StdLog.h
+0
-76
StdoutLog.cpp
.../RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/StdoutLog.cpp
+0
-110
StdoutLog.h
...r2/RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/StdoutLog.h
+0
-64
StreamSocket.cpp
...M_4_RRC_LITE/src/foreign/sockets-2.3.9.4/StreamSocket.cpp
+0
-173
StreamSocket.h
...RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/StreamSocket.h
+0
-142
StreamWriter.cpp
...M_4_RRC_LITE/src/foreign/sockets-2.3.9.4/StreamWriter.cpp
+0
-100
StreamWriter.h
...RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/StreamWriter.h
+0
-70
TcpSocket.cpp
.../RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/TcpSocket.cpp
+0
-1851
TcpSocket.h
...r2/RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/TcpSocket.h
+0
-370
Thread.cpp
...ir2/RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/Thread.cpp
+0
-178
Thread.h
openair2/RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/Thread.h
+0
-137
UdpSocket.cpp
.../RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/UdpSocket.cpp
+0
-922
UdpSocket.h
...r2/RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/UdpSocket.h
+0
-227
Utility.cpp
...r2/RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/Utility.cpp
+0
-1440
Utility.h
...air2/RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/Utility.h
+0
-276
XmlDocument.cpp
...RM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/XmlDocument.cpp
+0
-102
XmlDocument.h
.../RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/XmlDocument.h
+0
-85
XmlException.cpp
...M_4_RRC_LITE/src/foreign/sockets-2.3.9.4/XmlException.cpp
+0
-52
XmlException.h
...RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/XmlException.h
+0
-69
XmlNode.cpp
...r2/RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/XmlNode.cpp
+0
-357
XmlNode.h
...air2/RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/XmlNode.h
+0
-160
ajp13.h
openair2/RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/ajp13.h
+0
-102
gpl.txt
openair2/RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/gpl.txt
+0
-340
mkdot.sh
openair2/RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/mkdot.sh
+0
-14
libSockets.pc
..._LITE/src/foreign/sockets-2.3.9.4/pkgconfig/libSockets.pc
+0
-12
libSockets.pc.IN
...TE/src/foreign/sockets-2.3.9.4/pkgconfig/libSockets.pc.IN
+0
-12
libsockets2.pc
...LITE/src/foreign/sockets-2.3.9.4/pkgconfig/libsockets2.pc
+0
-12
libsockets2.pc.IN
...E/src/foreign/sockets-2.3.9.4/pkgconfig/libsockets2.pc.IN
+0
-12
socket_include.cpp
...4_RRC_LITE/src/foreign/sockets-2.3.9.4/socket_include.cpp
+0
-93
socket_include.h
...M_4_RRC_LITE/src/foreign/sockets-2.3.9.4/socket_include.h
+0
-305
sockets-config.h
...M_4_RRC_LITE/src/foreign/sockets-2.3.9.4/sockets-config.h
+0
-110
Makefile
...RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/tests/Makefile
+0
-95
base64.cpp
...M_4_RRC_LITE/src/foreign/sockets-2.3.9.4/tests/base64.cpp
+0
-35
chunked.cpp
..._4_RRC_LITE/src/foreign/sockets-2.3.9.4/tests/chunked.cpp
+0
-65
copy.cpp
...RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/tests/copy.cpp
+0
-264
crlf.cpp
...RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/tests/crlf.cpp
+0
-139
echoserver.cpp
...RRC_LITE/src/foreign/sockets-2.3.9.4/tests/echoserver.cpp
+0
-238
events.cpp
...M_4_RRC_LITE/src/foreign/sockets-2.3.9.4/tests/events.cpp
+0
-217
http.cpp
...RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/tests/http.cpp
+0
-72
http_post.cpp
..._RRC_LITE/src/foreign/sockets-2.3.9.4/tests/http_post.cpp
+0
-107
httpd.cpp
...RM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/tests/httpd.cpp
+0
-109
httpd_test.cpp
...RRC_LITE/src/foreign/sockets-2.3.9.4/tests/httpd_test.cpp
+0
-214
https.cpp
...RM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/tests/https.cpp
+0
-113
json.cpp
...RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/tests/json.cpp
+0
-52
listener.cpp
...4_RRC_LITE/src/foreign/sockets-2.3.9.4/tests/listener.cpp
+0
-152
resolve.cpp
..._4_RRC_LITE/src/foreign/sockets-2.3.9.4/tests/resolve.cpp
+0
-156
resume.cpp
...M_4_RRC_LITE/src/foreign/sockets-2.3.9.4/tests/resume.cpp
+0
-128
retry.cpp
...RM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/tests/retry.cpp
+0
-67
scanr.cpp
...RM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/tests/scanr.cpp
+0
-52
semtest.cpp
..._4_RRC_LITE/src/foreign/sockets-2.3.9.4/tests/semtest.cpp
+0
-96
sloppy_http.cpp
...RC_LITE/src/foreign/sockets-2.3.9.4/tests/sloppy_http.cpp
+0
-58
sockets_test.cpp
...C_LITE/src/foreign/sockets-2.3.9.4/tests/sockets_test.cpp
+0
-356
stressclient.cpp
...C_LITE/src/foreign/sockets-2.3.9.4/tests/stressclient.cpp
+0
-631
threadstress.cpp
...C_LITE/src/foreign/sockets-2.3.9.4/tests/threadstress.cpp
+0
-123
x.cpp
...r2/RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/tests/x.cpp
+0
-298
COPYING
openair2/UTIL/AT_COMMANDS/COPYING
+0
-674
parser.c
openair2/UTIL/AT_COMMANDS/parser.c
+0
-513
parser.h
openair2/UTIL/AT_COMMANDS/parser.h
+0
-220
Readme.doxy
openair2/UTIL/OCG/Readme.doxy
+0
-157
TraCIConstants.h
openair2/UTIL/OMG/TraCIConstants.h
+20
-683
packet-mac-lte.c
openair2/UTIL/OPT/packet-mac-lte.c
+0
-6195
packet-mac-lte.h
openair2/UTIL/OPT/packet-mac-lte.h
+0
-14
packet-rlc-lte.h
openair2/UTIL/OPT/packet-rlc-lte.h
+0
-150
probe.c
openair2/UTIL/OPT/probe.c
+0
-30
socket_sender.c
openair2/UTIL/OPT/socket_sender.c
+0
-21
mscgen
openair3/NAS/TEST/MSC/mscgen
+0
-0
test_util.c
openair3/TEST/test_util.c
+0
-287
test_util.h
openair3/TEST/test_util.h
+0
-62
COPYING
openair3/UDP/COPYING
+0
-674
gprof2dot.py
targets/SCRIPTS/PROFILING/gprof2dot.py
+0
-2780
profoai.sh
targets/SCRIPTS/PROFILING/profoai.sh
+0
-46
No files found.
cmake_targets/CMakeLists.txt
View file @
4787c975
...
...
@@ -880,6 +880,7 @@ set(UTIL_SRC
${
OPENAIR2_DIR
}
/UTIL/OMG/omg_hashtable.c
${
OPENAIR2_DIR
}
/UTIL/OMG/rwalk.c
${
OPENAIR2_DIR
}
/UTIL/OMG/rwp.c
${
OPENAIR2_DIR
}
/UTIL/OMG/sumo.c
${
OPENAIR2_DIR
}
/UTIL/OMG/socket_traci_OMG.c
${
OPENAIR2_DIR
}
/UTIL/OMG/static.c
${
OPENAIR2_DIR
}
/UTIL/OMG/steadystaterwp.c
...
...
@@ -1797,7 +1798,6 @@ add_executable(oaisim_nos1
${
OPENAIR_TARGETS
}
/SIMU/USER/oaisim.c
${
OPENAIR2_DIR
}
/RRC/NAS/nas_config.c
${
OPENAIR2_DIR
}
/RRC/NAS/rb_config.c
${
OPENAIR2_DIR
}
/UTIL/OMG/sumo.c
${
OPENAIR_TARGETS
}
/COMMON/create_tasks.c
${
HW_SOURCE
}
${
TRANSPORT_SOURCE
}
...
...
@@ -1882,7 +1882,6 @@ foreach(myExe s1ap
aes128_cmac_encrypt
secu_knas_encrypt_eia2
)
add_executable
(
test_
${
myExe
}
${
OPENAIR3_DIR
}
/TEST/test_util.c
${
OPENAIR3_DIR
}
/TEST/test_
${
myExe
}
.c
)
target_link_libraries
(
test_
${
myExe
}
...
...
common/utils/T/tracer/packet-mac-lte.h
View file @
4787c975
...
...
@@ -6,20 +6,6 @@
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* 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
* 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, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* This header file may also be distributed under
* the terms of the BSD Licence as follows:
*
...
...
openair2/DOCS/TEMPLATES/README/Readme.doxy
View file @
4787c975
...
...
@@ -25,7 +25,6 @@
* \date 2009
* \version 0.1
* \company Eurecom
* \note This conde is under GNU GENERAL PUBLIC LICENSE, version 2, June 1991
* \email: navid.nikaein@eurecom.fr
* \warning
*/
...
...
openair2/RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/Ajp13Socket.cpp
deleted
100755 → 0
View file @
73aa2657
This diff is collapsed.
Click to expand it.
openair2/RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/Ajp13Socket.h
deleted
100755 → 0
View file @
73aa2657
/**
** \file Ajp13Socket.h
** \date 2007-10-05
** \author grymse@alhem.net
**/
/*
Copyright (C) 2007-2010 Anders Hedstrom
This library is made available under the terms of the GNU GPL, with
the additional exemption that compiling, linking, and/or using OpenSSL
is allowed.
If you would like to use this library in a closed-source application,
a separate license agreement is available. For information about
the closed-source license agreement for the C++ sockets library,
please visit http://www.alhem.net/Sockets/license.html and/or
email license@alhem.net.
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
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, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef _SOCKETS_Ajp13Socket_H
#define _SOCKETS_Ajp13Socket_H
#include "AjpBaseSocket.h"
#include "HttpRequest.h"
#include "IHttpServer.h"
#include "HttpResponse.h"
#ifdef SOCKETS_NAMESPACE
namespace
SOCKETS_NAMESPACE
{
#endif
class
HttpResponse
;
class
Ajp13Socket
:
public
AjpBaseSocket
,
public
IHttpServer
{
public
:
Ajp13Socket
(
ISocketHandler
&
h
);
void
OnHeader
(
short
id
,
short
len
);
void
OnPacket
(
const
char
*
buf
,
size_t
sz
);
// implements IHttpServer::Respond
void
Respond
(
const
HttpResponse
&
res
);
void
OnTransferLimit
();
private
:
void
ReceiveBody
(
const
char
*
buf
,
size_t
sz
);
void
ReceiveForwardRequest
(
const
char
*
buf
,
size_t
sz
);
void
ReceiveShutdown
(
const
char
*
buf
,
size_t
sz
);
void
ReceivePing
(
const
char
*
buf
,
size_t
sz
);
void
ReceiveCPing
(
const
char
*
buf
,
size_t
sz
);
void
Execute
();
//
size_t
m_body_size_left
;
HttpRequest
m_req
;
HttpResponse
m_res
;
};
#ifdef SOCKETS_NAMESPACE
}
// namespace SOCKETS_NAMESPACE {
#endif
#endif // _SOCKETS_Ajp13Socket_H
openair2/RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/AjpBaseSocket.cpp
deleted
100755 → 0
View file @
73aa2657
/**
** \file AjpBaseSocket.cpp
** \date 2007-10-05
** \author grymse@alhem.net
**/
/*
Copyright (C) 2007-2010 Anders Hedstrom
This library is made available under the terms of the GNU GPL, with
the additional exemption that compiling, linking, and/or using OpenSSL
is allowed.
If you would like to use this library in a closed-source application,
a separate license agreement is available. For information about
the closed-source license agreement for the C++ sockets library,
please visit http://www.alhem.net/Sockets/license.html and/or
email license@alhem.net.
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
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, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifdef _MSC_VER
#pragma warning(disable:4786)
#endif
#include "AjpBaseSocket.h"
#include "ajp13.h"
#ifdef SOCKETS_NAMESPACE
namespace
SOCKETS_NAMESPACE
{
#endif
#ifdef _DEBUG
#define DEB(x) x
#else
#define DEB(x)
#endif
// ---------------------------------------------------------------------------
AjpBaseSocket
::
Initializer
AjpBaseSocket
::
Init
;
// ---------------------------------------------------------------------------
AjpBaseSocket
::
Initializer
::
Initializer
()
{
Header
[
HTTP_REQUEST_ACCEPT
]
=
"accept"
;
Header
[
HTTP_REQUEST_ACCEPT_CHARSET
]
=
"accept-charset"
;
Header
[
HTTP_REQUEST_ACCEPT_ENCODING
]
=
"accept-encoding"
;
Header
[
HTTP_REQUEST_ACCEPT_LANGUAGE
]
=
"accept-language"
;
Header
[
HTTP_REQUEST_AUTHORIZATION
]
=
"authorization"
;
Header
[
HTTP_REQUEST_CONNECTION
]
=
"connection"
;
Header
[
HTTP_REQUEST_CONTENT_TYPE
]
=
"content-type"
;
Header
[
HTTP_REQUEST_CONTENT_LENGTH
]
=
"content-length"
;
Header
[
HTTP_REQUEST_COOKIE
]
=
"cookie"
;
Header
[
HTTP_REQUEST_COOKIE2
]
=
"cookie2"
;
Header
[
HTTP_REQUEST_HOST
]
=
"host"
;
Header
[
HTTP_REQUEST_PRAGMA
]
=
"pragma"
;
Header
[
HTTP_REQUEST_REFERER
]
=
"referer"
;
Header
[
HTTP_REQUEST_USER_AGENT
]
=
"user-agent"
;
Method
[
HTTP_METHOD_OPTIONS
]
=
"OPTIONS"
;
Method
[
HTTP_METHOD_GET
]
=
"GET"
;
Method
[
HTTP_METHOD_HEAD
]
=
"HEAD"
;
Method
[
HTTP_METHOD_POST
]
=
"POST"
;
Method
[
HTTP_METHOD_PUT
]
=
"PUT"
;
Method
[
HTTP_METHOD_DELETE
]
=
"DELETE"
;
Method
[
HTTP_METHOD_TRACE
]
=
"TRACE"
;
Method
[
HTTP_METHOD_PROPFIND
]
=
"PROPFIND"
;
Method
[
HTTP_METHOD_PROPPATCH
]
=
"PROPPATCH"
;
Method
[
HTTP_METHOD_MKCOL
]
=
"MKCOL"
;
Method
[
HTTP_METHOD_COPY
]
=
"COPY"
;
Method
[
HTTP_METHOD_MOVE
]
=
"MOVE"
;
Method
[
HTTP_METHOD_LOCK
]
=
"LOCK"
;
Method
[
HTTP_METHOD_UNLOCK
]
=
"UNLOCK"
;
Method
[
HTTP_METHOD_ACL
]
=
"ACL"
;
Method
[
HTTP_METHOD_REPORT
]
=
"REPORT"
;
Method
[
HTTP_METHOD_VERSION_CONTROL
]
=
"VERSION_CONTROL"
;
// with a dash "VERSION-CONTROL"
Method
[
HTTP_METHOD_CHECKIN
]
=
"CHECKIN"
;
Method
[
HTTP_METHOD_CHECKOUT
]
=
"CHECKOUT"
;
Method
[
HTTP_METHOD_UNCHECKOUT
]
=
"UNCHECKOUT"
;
Method
[
HTTP_METHOD_SEARCH
]
=
"SEARCH"
;
Method
[
HTTP_METHOD_MKWORKSPACE
]
=
"MKWORKSPACE"
;
Method
[
HTTP_METHOD_UPDATE
]
=
"UPDATE"
;
Method
[
HTTP_METHOD_LABEL
]
=
"LABEL"
;
Method
[
HTTP_METHOD_MERGE
]
=
"MERGE"
;
Method
[
HTTP_METHOD_BASELINE_CONTROL
]
=
"BASELINE_CONTROL"
;
Method
[
HTTP_METHOD_MKACTIVITY
]
=
"MKACTIVITY"
;
Attribute
[
ATTR_CONTEXT
]
=
"context"
;
Attribute
[
ATTR_SERVLET_PATH
]
=
"servlet_path"
;
Attribute
[
ATTR_REMOTE_USER
]
=
"remote_user"
;
Attribute
[
ATTR_AUTH_TYPE
]
=
"auth_type"
;
Attribute
[
ATTR_QUERY_STRING
]
=
"query_string"
;
Attribute
[
ATTR_ROUTE
]
=
"route"
;
Attribute
[
ATTR_SSL_CERT
]
=
"ssl_cert"
;
Attribute
[
ATTR_SSL_CIPHER
]
=
"ssl_cipher"
;
Attribute
[
ATTR_SSL_SESSION
]
=
"ssl_session"
;
Attribute
[
ATTR_SSL_KEY_SIZE
]
=
"ssl_key_size"
;
Attribute
[
ATTR_SECRET
]
=
"secret"
;
Attribute
[
ATTR_STORED_METHOD
]
=
"stored_method"
;
ResponseHeader
[
"content-type"
]
=
0xa001
;
ResponseHeader
[
"content-language"
]
=
0xa002
;
ResponseHeader
[
"content-length"
]
=
0xa003
;
ResponseHeader
[
"date"
]
=
0xa004
;
ResponseHeader
[
"last-modified"
]
=
0xa005
;
ResponseHeader
[
"location"
]
=
0xa006
;
ResponseHeader
[
"set-cookie"
]
=
0xa007
;
ResponseHeader
[
"set-cookie2"
]
=
0xa008
;
ResponseHeader
[
"servlet-engine"
]
=
0xa009
;
ResponseHeader
[
"status"
]
=
0xa00a
;
ResponseHeader
[
"www-authenticate"
]
=
0xa00b
;
}
// ---------------------------------------------------------------------------
AjpBaseSocket
::
AjpBaseSocket
(
ISocketHandler
&
h
)
:
TcpSocket
(
h
)
,
m_state
(
0
)
,
m_length
(
4
)
,
m_ptr
(
0
)
{
}
// ---------------------------------------------------------------------------
void
AjpBaseSocket
::
OnRawData
(
const
char
*
buf
,
size_t
sz
)
{
DEB
(
fprintf
(
stderr
,
"OnRawData: %d bytes
\n
"
,
sz
);)
size_t
ptr
=
0
;
while
(
true
)
{
size_t
left
=
sz
-
ptr
;
DEB
(
fprintf
(
stderr
,
" left: %d bytes
\n
"
,
left
);
fprintf
(
stderr
,
" state: %d
\n
"
,
m_state
);)
switch
(
m_state
)
{
case
0
:
{
size_t
missing
=
m_length
-
m_ptr
;
short
len
=
(
short
)(
missing
<
left
?
missing
:
left
);
memcpy
(
m_message
+
m_ptr
,
buf
+
ptr
,
len
);
m_ptr
+=
len
;
ptr
+=
len
;
if
(
m_ptr
<
m_length
)
{
return
;
// read more
}
int
p
=
0
;
short
id
=
get_integer
(
m_message
,
p
);
short
length
=
get_integer
(
m_message
,
p
);
OnHeader
(
id
,
length
);
m_state
=
1
;
m_length
=
length
;
m_ptr
=
0
;
// bytes in m_message
}
break
;
case
1
:
{
size_t
missing
=
m_length
-
m_ptr
;
short
len
=
(
short
)(
missing
<
left
?
missing
:
left
);
memcpy
(
m_message
+
m_ptr
,
buf
+
ptr
,
len
);
m_ptr
+=
len
;
ptr
+=
len
;
if
(
m_ptr
<
m_length
)
{
return
;
// read more
}
OnPacket
(
m_message
,
m_ptr
);
m_state
=
0
;
m_length
=
4
;
m_ptr
=
0
;
}
break
;
}
}
}
// ---------------------------------------------------------------------------
unsigned
char
AjpBaseSocket
::
get_byte
(
const
char
*
buf
,
int
&
ptr
)
{
return
(
unsigned
char
)
buf
[
ptr
++
];
}
// ---------------------------------------------------------------------------
bool
AjpBaseSocket
::
get_boolean
(
const
char
*
buf
,
int
&
ptr
)
{
return
(
(
unsigned
char
)
buf
[
ptr
++
]
&
1
)
==
1
?
true
:
false
;
}
// ---------------------------------------------------------------------------
short
AjpBaseSocket
::
get_integer
(
const
char
*
buf
,
int
&
ptr
)
{
short
n
;
memcpy
(
&
n
,
buf
+
ptr
,
2
);
ptr
+=
2
;
return
ntohs
(
n
);
}
// ---------------------------------------------------------------------------
std
::
string
AjpBaseSocket
::
get_string
(
const
char
*
buf
,
int
&
ptr
)
{
short
len
=
get_integer
(
buf
,
ptr
);
if
(
len
!=
-
1
)
{
std
::
string
tmp
=
buf
+
ptr
;
ptr
+=
len
;
ptr
++
;
// skip trailing 0x0
tmp
.
resize
(
len
);
return
tmp
;
}
return
""
;
}
// ---------------------------------------------------------------------------
void
AjpBaseSocket
::
put_byte
(
char
*
buf
,
int
&
ptr
,
unsigned
char
zz
)
{
buf
[
ptr
++
]
=
zz
;
}
// ---------------------------------------------------------------------------
void
AjpBaseSocket
::
put_boolean
(
char
*
buf
,
int
&
ptr
,
bool
zz
)
{
buf
[
ptr
++
]
=
zz
?
1
:
0
;
}
// ---------------------------------------------------------------------------
void
AjpBaseSocket
::
put_integer
(
char
*
buf
,
int
&
ptr
,
short
zz
)
{
short
tmp
=
htons
(
zz
);
memcpy
(
buf
+
ptr
,
&
tmp
,
2
);
ptr
+=
2
;
}
// ---------------------------------------------------------------------------
void
AjpBaseSocket
::
put_string
(
char
*
buf
,
int
&
ptr
,
const
std
::
string
&
zz
)
{
put_integer
(
buf
,
ptr
,
(
short
)
zz
.
size
()
);
memcpy
(
buf
+
ptr
,
zz
.
c_str
(),
zz
.
size
());
ptr
+=
(
int
)
zz
.
size
();
put_byte
(
buf
,
ptr
,
0
);
}
#ifdef SOCKETS_NAMESPACE
}
// namespace SOCKETS_NAMESPACE {
#endif
openair2/RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/AjpBaseSocket.h
deleted
100755 → 0
View file @
73aa2657
/**
** \file AjpBaseSocket.h
** \date 2007-10-05
** \author grymse@alhem.net
**/
/*
Copyright (C) 2007-2010 Anders Hedstrom
This library is made available under the terms of the GNU GPL, with
the additional exemption that compiling, linking, and/or using OpenSSL
is allowed.
If you would like to use this library in a closed-source application,
a separate license agreement is available. For information about
the closed-source license agreement for the C++ sockets library,
please visit http://www.alhem.net/Sockets/license.html and/or
email license@alhem.net.
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
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, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef _SOCKETS_AjpBaseSocket_H
#define _SOCKETS_AjpBaseSocket_H
#include "TcpSocket.h"
#include <map>
#include "Utility.h"
#ifdef SOCKETS_NAMESPACE
namespace
SOCKETS_NAMESPACE
{
#endif
class
AjpBaseSocket
:
public
TcpSocket
{
class
Initializer
{
public
:
Initializer
();
virtual
~
Initializer
()
{}
std
::
map
<
int
,
std
::
string
>
Method
;
std
::
map
<
int
,
std
::
string
>
Header
;
std
::
map
<
int
,
std
::
string
>
Attribute
;
Utility
::
ncmap
<
int
>
ResponseHeader
;
};
public
:
AjpBaseSocket
(
ISocketHandler
&
h
);
void
OnRawData
(
const
char
*
buf
,
size_t
sz
);
virtual
void
OnHeader
(
short
id
,
short
len
)
=
0
;
virtual
void
OnPacket
(
const
char
*
buf
,
size_t
sz
)
=
0
;
protected
:
unsigned
char
get_byte
(
const
char
*
buf
,
int
&
ptr
);
bool
get_boolean
(
const
char
*
buf
,
int
&
ptr
);
short
get_integer
(
const
char
*
buf
,
int
&
ptr
);
std
::
string
get_string
(
const
char
*
buf
,
int
&
ptr
);
void
put_byte
(
char
*
buf
,
int
&
ptr
,
unsigned
char
zz
);
void
put_boolean
(
char
*
buf
,
int
&
ptr
,
bool
zz
);
void
put_integer
(
char
*
buf
,
int
&
ptr
,
short
zz
);
void
put_string
(
char
*
buf
,
int
&
ptr
,
const
std
::
string
&
zz
);
static
Initializer
Init
;
private
:
int
m_state
;
int
m_length
;
int
m_ptr
;
char
m_message
[
8192
];
};
#ifdef SOCKETS_NAMESPACE
}
// namespace SOCKETS_NAMESPACE {
#endif
#endif // _SOCKETS_AjpBaseSocket_H
openair2/RRM_4_RRC_LITE/src/foreign/sockets-2.3.9.4/Base64.cpp
deleted
100755 → 0
View file @
73aa2657
/** \file Base64.cpp
** \date 2004-02-13
** \author grymse@alhem.net
**/
/*
Copyright (C) 2004-2010 Anders Hedstrom
This library is made available under the terms of the GNU GPL, with
the additional exemption that compiling, linking, and/or using OpenSSL
is allowed.
If you would like to use this library in a closed-source application,
a separate license agreement is available. For information about
the closed-source license agreement for the C++ sockets library,
please visit http://www.alhem.net/Sockets/license.html and/or
email license@alhem.net.
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
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, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "Base64.h"
#include "IFile.h"
#ifdef SOCKETS_NAMESPACE
namespace
SOCKETS_NAMESPACE
{
#endif
const
char
*
Base64
::
bstr
=
"ABCDEFGHIJKLMNOPQ"
"RSTUVWXYZabcdefgh"
"ijklmnopqrstuvwxy"
"z0123456789+/"
;
const
char
Base64
::
rstr
[]
=
{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
62
,
0
,
0
,
0
,
63
,
52
,
53
,
54
,
55
,
56
,
57
,
58
,
59
,
60
,
61
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
,
10
,
11
,
12
,
13
,
14
,
15
,
16
,
17
,
18
,
19
,
20
,
21
,
22
,
23
,
24
,
25
,
0
,
0
,
0
,
0
,
0
,
0
,
26
,
27
,
28
,
29
,
30
,
31
,
32
,
33
,
34
,
35
,
36
,
37
,
38
,
39
,
40
,
41
,
42
,
43
,
44
,
45
,
46
,
47
,
48
,
49
,
50
,
51
,
0
,
0
,
0
,
0
,
0
};
Base64
::
Base64
()
{
}
void
Base64
::
encode
(
IFile
*
fil
,
std
::
string
&
output
,
bool
add_crlf
)
{
size_t
remain
;
size_t
i
=
0
;
size_t
o
=
0
;
char
input
[
4
];
output
=
""
;
remain
=
fil
->
fread
(
input
,
1
,
3
);
while
(
remain
>
0
)
{
if
(
add_crlf
&&
o
&&
o
%
76
==
0
)
output
+=
"
\n
"
;
switch
(
remain
)
{
case
1
:
output
+=
bstr
[
((
input
[
i
]
>>
2
)
&
0x3f
)
];
output
+=
bstr
[
((
input
[
i
]
<<
4
)
&
0x30
)
];
output
+=
"=="
;
break
;
case
2
:
output
+=
bstr
[
((
input
[
i
]
>>
2
)
&
0x3f
)
];
output
+=
bstr
[
((
input
[
i
]
<<
4
)
&
0x30
)
+
((
input
[
i
+
1
]
>>
4
)
&
0x0f
)
];
output
+=
bstr
[
((
input
[
i
+
1
]
<<
2
)
&
0x3c
)
];
output
+=
"="
;
break
;
default
:
output
+=
bstr
[
((
input
[
i
]
>>
2
)
&
0x3f
)
];
output
+=
bstr
[
((
input
[
i
]
<<
4
)
&
0x30
)
+
((
input
[
i
+
1
]
>>
4
)
&
0x0f
)
];
output
+=
bstr
[
((
input
[
i
+
1
]
<<
2
)
&
0x3c
)
+
((
input
[
i
+
2
]
>>
6
)
&
0x03
)
];
output
+=
bstr
[
(
input
[
i
+
2
]
&
0x3f
)
];
}
o
+=
4
;
//
remain
=
fil
->
fread
(
input
,
1
,
3
);
}
}
void
Base64
::
encode
(
FILE
*
fil
,
std
::
string
&
output
,
bool
add_crlf
)
{
size_t
remain
;
size_t
i
=
0
;
size_t
o
=
0
;
char
input
[
4
];
output
=
""
;
remain
=
fread
(
input
,
1
,
3
,
fil
);
while
(
remain
>
0
)
{
if
(
add_crlf
&&
o
&&
o
%
76
==
0
)