Commit Graph

232 Commits

Author SHA1 Message Date
henrik karlsson
b985fbd1b1 Removed lots of includes in high traffic headers in order to reduce compile times. Headers are still included if UE_ENABLE_INCLUDE_ORDER_DEPRECATED_IN_5_2 is set to 1
List of highlights
* PlayerController - Removed ForceFeedback and and OnlineReplStructs
* Class - Removed Package.h
* World - Pawn, Blueprint and GameInstance
* Actor - CoreNet, HitResult and ActorDatalayer
* EngineBaseTypes - TaskGraphInterface
* AssetManager - AssetData
* Scene/Child/ActorComponent - CoreNet
* AnimInstance - AttributesRuntime, Skeleton, AnimCurveTypes, AnimMontage, BonePose
* BulkData - IoDispatcher
* AssetData - IoDispatcher, LinkerLoad
* SecureHash - AsyncWork
* CanvasTypes - UnrealEngine, StaticMeshResources
* IpAddress - AsyncWork, Stats

#preflight 6363717ece676ae8688f5d8c
#rb none

[CL 22968258 by henrik karlsson in ue5-main branch]
2022-11-03 17:56:44 -04:00
brian bekich
0324b3e536 Moving BSD code out of base socket subsystem
Use socket apis in GetLocalHostAddrViaConnect to use the correct types and respect ipv6

#jira UE-168936
#preflight 63629def876630122aad68ac
#rb ryan.gerleve

[CL 22937828 by brian bekich in ue5-main branch]
2022-11-02 23:04:58 -04:00
henrik karlsson
4a36cfe8ff Moved operator== to be hidden friend instead of put directly in global namespace
Moved GetTypeHash function to be hidden friend instead of put directly in global namespace.

Note that the function/operator needs to be fully inlined in the type or placed in the cpp. If the function is added as friend but then implemented outside the type then hidden friend optimization won't work.

This should improve compile time somewhat according to msvc devs.

#rb Steve.Robb
#preflight 6360b7052b5338aceb26471b

[CL 22889837 by henrik karlsson in ue5-main branch]
2022-11-01 15:50:27 -04:00
matt peters
205303bc24 FHttpServer and FInternetAddr: Fix failed check statements and ensures in FHttpServerIntegrationTest.
Fix FHttpListener::StartListening to return false rather than fail a check statement when the ListenPort is invalid.
Downgrade ensure in FHttpServerModule::GetHttpRouter to an error when the listening fails.
#jira UE-161468
#rb Devin.Doucette
#rnx
#preflight 635a9ebd944463bad45b8836

[CL 22813013 by matt peters in ue5-main branch]
2022-10-27 13:16:00 -04:00
john barrett
a7e887cd15 Fixed Receive calls with negative size, to properly return false.
#JIRA UE-166528
#rb trivial

[CL 22546754 by john barrett in ue5-main branch]
2022-10-14 22:22:05 -04:00
john barrett
86ad341211 Fixed signed vs unsigned bounds check.
#JIRA UE-166507
#rb trivial

[CL 22546741 by john barrett in ue5-main branch]
2022-10-14 22:21:04 -04:00
John Barrett
a866f6f967 Fixed FSocket::GetConnectionState returning 'SCS_Connected' status, while the socket is closed. Fix contributed by imatakeharuhiko.
#9363
#rb trivial
#preflight trivial

[CL 22083175 by John Barrett in ue5-main branch]
2022-09-19 18:35:01 -04:00
bryan sefcik
cb0456c6d4 Cleaned up build.cs files by removing any include paths that were already being added by UBT. This was done to help identify how include paths are being added and to help with future refactoring.
#jira
#preflight 631a5c04967ffc68fbf0dd8f

[CL 21911226 by bryan sefcik in ue5-main branch]
2022-09-08 21:44:02 -04:00
jessica agee
403f029bd7 Set UnsafeTypeCastWarningLevel to Error for a few widely-used modules
#rb none
#preflight 630d013af92416fb926b3c7a
#preflight 630d0938e54ec9d5815ebb45

[CL 21696478 by jessica agee in ue5-main branch]
2022-08-30 02:22:04 -04:00
devin doucette
a99b36a729 Fixed unsafe type casts in a few widely-used modules
#preflight 6303ea8aa45b007ea2514f30
#rb Zousar.Shaker
#rnx

[CL 21494524 by devin doucette in ue5-main branch]
2022-08-22 17:38:22 -04:00
devin doucette
eb55a547d0 Fixed unsafe type casts in a few widely-used modules
#preflight 62f72b49185b21882ac5c366
#rb Steve.Robb
#rnx

#ROBOMERGE-AUTHOR: devin.doucette
#ROBOMERGE-SOURCE: CL 21404445 via CL 21404453 via CL 21404464
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v975-21357124)

[CL 21407133 by devin doucette in ue5-main branch]
2022-08-16 12:35:53 -04:00
john barrett
e4dd96d41d Fixed redundant socket bindings on some platforms (Revision #1).
#rb Ryan.Gerleve
#preflight 62ceaaf9471a2c2886fa5f9f

#ROBOMERGE-AUTHOR: john.barrett
#ROBOMERGE-SOURCE: CL 21164644 via CL 21166318 via CL 21172536 via CL 21174322 via CL 21180261
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v972-20964824)

[CL 21192296 by john barrett in ue5-main branch]
2022-07-20 18:27:58 -04:00
Bryan sefcik
b4a6e947d8 Ran IWYU on Public headers under Engine/Source/Runtime/...
Headers are updated to contain any missing #includes needed to compile and #includes are sorted.  Nothing is removed.

#ushell-cherrypick of 21065896 by bryan.sefcik
#preflight 62d4b1a5a6141b6adfb0c892
#jira

#ROBOMERGE-OWNER: Bryan.sefcik
#ROBOMERGE-AUTHOR: bryan.sefcik
#ROBOMERGE-SOURCE: CL 21150156 via CL 21151754 via CL 21154719
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v972-20964824)
#ROBOMERGE-CONFLICT from-shelf

[CL 21181076 by Bryan sefcik in ue5-main branch]
2022-07-20 11:31:36 -04:00
steve robb
b91bc48a31 Fix for UTF-8 array initialization.
#rb trivial
#jira UE-132142
#preflight none

#ROBOMERGE-AUTHOR: steve.robb
#ROBOMERGE-SOURCE: CL 20899629 via CL 20899902 via CL 20899940
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v971-20777995)

[CL 20902718 by steve robb in ue5-main branch]
2022-06-30 16:18:43 -04:00
David Harvey
9cc4146fbc move HoloLens runtime source to platform extension folder.
#jira UE-149794
#rnx
#rb Jeff.Fisher
#preflight 6284cd49614041edb76395dc

[CL 20258963 by David Harvey in ue5-main branch]
2022-05-18 06:59:59 -04:00
alex koumandarakis
c0f3b15a82 #8402 : PR : Add support for using poll instead of select in BSD sockets. Sockets will use poll by default (if supported by the platform), but this can be toggled with the USE_SOCKET_FEATURE_POLL macro.
#jira UE-126684
#rb Brian.Bekich, Brandon.Schaefer
#preflight 62585a33010ebc5d4e81eb25

[CL 19759812 by alex koumandarakis in ue5-main branch]
2022-04-14 13:46:36 -04:00
Wojciech Krywult
e96df44ac8 NetworkMessage: Added a missing virtual destructor to FSimpleAbstractSocket
#preflight 62151f7130639b44d2e6f620
#rb David.Harvey
#rnx

[CL 19075497 by Wojciech Krywult in ue5-main branch]
2022-02-22 13:02:25 -05:00
john barrett
ec06c68940 Reduced NotifyAcceptingConnection logspam, aggregating logs after a threshold, while avoding spam during DoS/DDoS.
#rb LouisPhilippe.Seguin, Peter.Engstrom

#ROBOMERGE-AUTHOR: john.barrett
#ROBOMERGE-SOURCE: CL 18755108 via CL 18756553 via CL 18756636 via CL 18756758 via CL 18761057 via CL 18761769
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v903-18687472)

[CL 18761805 by john barrett in ue5-main branch]
2022-01-27 16:12:29 -05:00
aurel cordonnier
fc542f6cfd Merge from Release-Engine-Staging @ 18081189 to Release-Engine-Test
This represents UE4/Main @18073326, Release-5.0 @18081140 and Dev-PerfTest @18045971

[CL 18081471 by aurel cordonnier in ue5-release-engine-test branch]
2021-11-07 23:43:01 -05:00
aurel cordonnier
a6e741e007 Merge from Release-Engine-Staging @ 17915896 to Release-Engine-Test
This represents UE4/Main @17911760, Release-5.0 @17915875 and Dev-PerfTest @17914035

[CL 17918595 by aurel cordonnier in ue5-release-engine-test branch]
2021-10-25 20:05:28 -04:00
pj kack
1b5d14716c Delete obsolete and unused CookedIterativeFile module
#rb per.larsson
#rnx
#preflight 6142fe35568b3a000112c145

#ROBOMERGE-AUTHOR: pj.kack
#ROBOMERGE-SOURCE: CL 17535748 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v870-17433530)

[CL 17535754 by pj kack in ue5-release-engine-test branch]
2021-09-16 05:27:21 -04:00
aurel cordonnier
25a11deeac Merge from Release-Engine-Staging @ 16579919
This represents UE4/Main @ 16579691 and Dev-PerfTest @ 16579576

[CL 16581170 by aurel cordonnier in ue5-release-engine-test branch]
2021-06-07 20:09:45 -04:00
dave hunter
5b6211127a Change call from close to closesocket
This should make the windows build happy

#jira none
#rb aurel.cordonnier
#fyi martin.ridgers, rolando.caloca, will.damon
#rnx

[CL 16390620 by dave hunter in ue5-main branch]
2021-05-19 15:15:04 -04:00
dave hunter
ff266dc26c Add GetLocalHostAddrViaConnect
This new seems to report a more correct IP address via GetLocalHostAddr.  If this method doesn't succeed the previous mechanisms are used.

#jira UE-113989
#rb will.damon
#fyi martin.ridgers, rolando.caloca
#rnx

[CL 16388833 by dave hunter in ue5-main branch]
2021-05-19 13:12:26 -04:00
Marc Audy
01b7c9f4f5 Merge UE5/RES @ 15958325 to UE5/Main
This represents UE4/Main @ 15913390 and Dev-PerfTest @ 15913304

[CL 15958515 by Marc Audy in ue5-main branch]
2021-04-08 14:32:07 -04:00