The Artima Developer Community
Sponsored Link

Java Buzz Forum
TTMP CONNECT Handshake =)

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Brian McCallister

Posts: 1282
Nickname: frums
Registered: Sep, 2003

Brian McCallister is JustaProgrammer who thinks too much.
TTMP CONNECT Handshake =) Posted: Aug 8, 2005 7:43 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Brian McCallister.
Original Post: TTMP CONNECT Handshake =)
Feed Title: Waste of Time
Feed URL: http://kasparov.skife.org/blog/index.rss
Feed Description: A simple waste of time and weblog experiment
Latest Java Buzz Posts
Latest Java Buzz Posts by Brian McCallister
Latest Posts From Waste of Time

Advertisement

Beat on TTMP some this evening, after doing a bunch of work on a top-secret project this morning. The best part is that I have no idea which project is more fun =) Yea!

Anyway, current state of the TTMP connection handshake:

Client sends a CONNECT frame:

CONNECT
login: [login name]
passcode: [passcode]

^@ 

Please excuse the use of [foo] instead of <foo> for required things. I am too lazy to escape them =)

Okay, so client sends that, server will either reply with an error indicating a failed login:

ERROR
message: [error message]

^@    

Or a CONNECTED

CONNECTED
session: [session id]

^@       

Yeah! You are connected. The login handshake has been implemented in ActiveMQ. It's a bit hacky because TTMP is much less chatty than the JMS spec, so the WireFormat implementation has to pretend there is more traffic than there really, but that is an implementation detail =)

I am not sure about requiring the session on every frame now that it is definately a connection-oriented protocol. The socket is certainly trackable, and requiring the session implies you can change sessions, which isn't something I think I want. Will muck around some, but am thinking hard of dropping that.

Read: TTMP CONNECT Handshake =)

Topic: NetBeans Click-Through Non-Free License A Screw-Up, Will Be Fixed Previous Topic   Next Topic Topic: ADF BC&#8217;s readXml doesn&#8217;t work with one-to-one links

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use