Closed Bug 1244299 Opened 8 years ago Closed 8 years ago

Implement FlyWeb Routing Abstraction for MDNS services

Categories

(Core :: Networking, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: djvj, Unassigned)

References

Details

Attachments

(4 files, 3 obsolete files)

When the browser establishes a "session" (not a HTTP session, but a logical FlyWeb session) with a discovered service, it should assign a UUID-based name to the session, and route URLs containing that UUID as their host, to the appropriate service.

This involves messing with nsISocketTransportService and nsISocketTransport implementations to route URLS with FlyWeb-UUID hosts to a different target than what would normally be done when a host is assumed to refer to an internet domain.
This patch changes the "connectToService" internal API call to operate asynchronously (accepting a callback) instead of just returning the connection object.
Adds a listConnectedServices method to the internal API that lets us list all the connected FlyWeb services from gecko.
This patch is the bulk of the work.  It changes nsSocketTransportService2, nsSocketTransport2, and FlyWebConnectedService to let gecko bypass normal DNS lookup when connecting to FlyWeb-UUID hosts.
Re-uploading patch for new patchset update (only the last patch is new).
Attachment #8713823 - Attachment is obsolete: true
Attachment #8713824 - Attachment is obsolete: true
Renamed this patch to reflect its contents better.
Attachment #8713825 - Attachment is obsolete: true
This makes it so that when we connect twice to the same service, we re-use the ConnectedService objects already established from the previous connection.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: