'Perform the rendezvous socket transfer between plugins'

def __transformSocket(self, rendezvous, remoteSocket, localSocket, cache):

    ls = ctypes.c_uint()
    if (remoteSocket is None):
        localSocket = None
        return
    for (l, r) in cache:
        if (remoteSocket == r):
            localSocket = l
            return
    exma.recvSocket(ctypes.c_uint(rendezvous), ctypes.c_uint(remoteSocket), ctypes.pointer(ls))
    localSocket = ls.value
    entry = (ls.value, remoteSocket)
    cache.append(entry)
