12static IAS_CVAR(FString,
SocksIp,
"",
"Routes all IAS HTTP traffic through the given SOCKS proxy");
16static uint32 GetSocksIpAddress()
25 if (c -
'0' <=
'9' -
'0')
28 Accumulator += (c -
'0');
32 if (c ==
'.' || c ==
'\0')
106#pragma warning(disable : 6385)
123 const char Greeting[] = { 5, 1, 0 };
138 char Request[] = { 5, 1, 0, 1, 0x11,0x11,0x11,0x11, 0x22,0x22 };
146 char Reply[3 + (1 + 4) + 2];
150 if (Reply[0] != 0x05 || Reply[1] != 0x00)
return FOutcome::Error(
"Reply has unexpected socks5 version");
176 case 4:
return ConnectSocks4(Socket,
IpAddress, Port);
177 case 5:
return ConnectSocks5(Socket,
IpAddress, Port);
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define IAS_CVAR(Type, Name, Default, Desc,...)
Definition Misc.inl:58
static FOutcome Ok(int32 Result=0)
Definition Misc.inl:113
static FOutcome Error(const char *Message, int32 Code=-1)
Definition Misc.inl:151
static FOutcome None()
Definition Misc.inl:80
@ Socket
Definition EngineTypes.h:3849
const Type Command
Definition GenericApplication.h:46
uint16 Socket_HtoNs(uint16 v)
Definition Socket.inl:117
uint32 Socket_HtoNl(uint32 v)
Definition Socket.inl:116
Version
Definition NNEModelData.cpp:15