Socket Server over SSL. I.e Unity 2.

Posted on 2006-04-22
Last Modified: 2008-02-26
I have installed and setup Unity 2 socket server ( I intend to use this with a Flash front end.

Currently my Rich Internet Application is used to send sensitive data, so I use https/ssl. This works fine as a call my php scripts from flash, over https.

The problem is that it is ineffecient to keep making TCP connections to the server because I have multiple users at once. Hence, the socket server, is an ideal solution as it keeps the connection open and pushes data back and forth in real time.

My question is: how can I use this socket server over https????

I would greatly appreciate any help..


Question by:MilesTinsley
    LVL 10

    Accepted Solution

    If this is XMLSocket object connecting, I don't think there is a good way.

    See FAQ #5:
    LVL 2

    Author Comment

    Quote from:

    "The one exception to this is the way Macromedia Flash uses persistent sockets
    (through the ActionScript XMLSocket object), which does not use the browser to
    communicate with the server. Because of this, it cannot take advantage of the
    built-in encryption capabilities of the browser. However, it is possible to use oneway
    encryption algorithms written in ActionScript to encrypt the data being

    Fantastic! Thats what i needed to know. I better getter started on writing a "one-way encryption algorithm"!

    I checked the Unity site before posting this question: i've never been able to see whats right in front of me!!!!

    Thank you very much sleep_furiously. That has helped me greatly.....

    Featured Post

    Live: Real-Time Solutions, Start Here

    Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

    Join & Write a Comment

    Uploading files to the web server has become common part of almost any kind of web application. People use different technologies to solve this, but regardless of the technology used, it is always useful to have some kind of progress indicator shown…
    Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
    The viewer will learn how to dynamically set the form action using jQuery.
    This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now