/http_grouptalk

HttpGroupTalkClient

Primary LanguageJava

HttpGroupTalk

Protocol

HGTP (Http Group Talk Protocol)

Define : Session management protocol for http communication between multiple users.

Format : Server & Client, request & response

Request

REGISTER : Request to register a client from the server.
UNREGISTER : Request to unregister a client from the server.
CREATE_ROOM : Request to create a room.
DELETE_ROOM : Request to delete a room.
JOIN_ROOM : Request to enter the room.
EXIT_ROOM : Request to exit the room.
INVITE_USER_FROM_ROOM : Request to invite another user to the current room. (only manager)
REMOVE_USER_FROM_ROOM : Request to kick another user out of the current room. (only manager)

Response

OK : Response to a successfully processed request.
BAD_REQUEST : Response to request failure by the user.
UNAUTHORIZED : Response for register authentication.
FORBIDDEN : Response due to register authentication failure.
SERVER_UNAVAILABLE : Response to request failure by the server.
DECLINE : Response to request failure by the peer user.

Header Format (24 bytes)

image

Content (Variable)

Include the data needed for each request and response.

Structure

Basic Flow

image

HGTP Invite/Remove Flow

image

HGTP Create/Delete/Join/Exit Flow

image

HGTP Register/Unregister

image

HTTP Flow

image

HGTP FSM

image

Transport Structure

image