Skip to content

Instantly share code, notes, and snippets.

// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
#include "GameObjectLookupTable.generated.h"
#pragma once
USTRUCT(Blueprintable)
struct FGameObjectLookupTable : public FTableRowBase
{
GENERATED_USTRUCT_BODY()
ESocketErrors getErrors()
{
if (serverSocket == NULL) return SE_NO_ERROR;
// HotFix for 316 (Unkown error)
if (errno == 316) errno = 0;
return ISocketSubsystem::Get()->GetLastErrorCode();
}
[2014.04.17-13.05.47:674][148]LogSockets:Warning: Unhandled socket error! Error Code: 316
/Users/build/BuildFarm/build_++depot+UE4-Releases+4.0/Engine/Source/Runtime/Sockets/Private/BSDSockets/SocketSubsystemBSD.cpp(218): Assertion failed: 0
UFUNCTION(BlueprintCallable, Category = "ServerProxy")
static TSubclassOf<AActor> FindGOCByString(const FString name);
Net = require 'net'
Dissolve = require 'dissolve'
Util = require "util"
Concentrate = require 'concentrate'
PCT_NOHUP = 1
PCT_LOGINREQUEST = 2
PCT_LOGINRESPONSE = 3
PCT_ADM_SEND_MSG = 4
PCT_ADM_MSG = 5
USerializablePacket* UServerProxyBlueprintInterface::CreatePacket()
{
return NewObject<USerializablePacket>();
}
//oo FString
std::ostream& operator<<( std::ostream & s, FString& c )
{
uint16 fstringLength = c.Len();
s.write( reinterpret_cast<const char*>(&fstringLength), sizeof(fstringLength) );
return s;
}
std::istream& operator>>( std::istream & s, FString& c )
{
// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
namespace UnrealBuildTool.Rules
{
public class OnlineSubsystemUsecode : ModuleRules
{
public OnlineSubsystemUsecode(TargetInfo Target)
{
PublicIncludePaths.AddRange(
new string[] {
// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "ModuleManager.h"
/**
* The public interface to this module
*/
FIPv4Endpoint myServerAddress;
FIPv4Endpoint::Parse( FString("23.92.18.101:50010"), &myServerAddress);
// FSocket* MySocket = FTcpSocketBuilder().AsNonBlocking().AsReusable().BoundToPort(MyServerPort).Build();
FSocket* MySocket = FTcpSocketBuilder().AsNonBlocking().AsReusable().Build();
MySocket->Connect( myServerAddress.ToInternetAddr() );