TCP Socket Listener, Receiving Binary Data into UE4 From a Python Script!

Hi, I have tried to implement code mentioned above, but I had some issues with socket ListenerSocket->HasPendingConnection used. I do not know reason why this function never set my Pending variable to true(I am using unreal engine 4.9.2).

Finally, I managed to get code going with help of FTcpLitener instead of FSocket like so:

Listener = new FTcpListener(FIPv4Endpoint(FIPv4Address(127, 0, 0, 1), 8890));
Listener->OnConnectionAccepted().BindUObject(this, &AMyActor::foo);

bool AMyActor::foo(FSocket* ClientSocket, const FIPv4Endpoint& ClientEndpoint){
ConnectionSocket = ClientSocket;
return true;
}

P.S. @ : If you let me do so, I will be more than glad to update wiki page. (Did not wanted to do so without asking ;-))