Protocol Base #
- ±âº»Àº ÅؽºÆ®¶óÀÎ ÇÁ·ÎÅäÄÝ - °³¹ßÆíÀǸ¦ À§ÇÑ °ÍÀ̸ç, ÇâÈÄ¿¡ ĸ½¶È ½Ãų°ÍÀÌ´Ù (üũ¼¶, ½Ã¸®¾óÄÚµå, ¾ÏÈ£È)
- ÆÐŶ ÇϳªÀÇ ±¸Á¶
| Header Mark | Data | End Packet |
size | 1 | var | 1 |
¿¹Á¦ | * | ... | \r |
{Header Mark} : 1 byte = '*'
{Data} Variable
{End Mark} : byte = '\r' ; ÀÌ ÄÚµå´Â 0x0DÀÇ Ä³¸®Áö¸®ÅÏ(\r) ij¸¯ÅÍÀÌ´Ù.
- telnetµîÀÇ Å×½ºÆ® ÇÁ·Î±×·¥¿¡¼ µµ½º¿Í À¯´Ð½ºÀÇ Â÷ÀÌ·Î \r¿¡ À̾î \n (0x0A, Newline) ÀÌ ¿À´Â °æ¿ì°¡ Àִµ¥ ÀÌ´Â ¹«½ÃÇÑ´Ù.
- Data´Â °¡º¯±æÀÌÀÌ¸ç »çÀÌÁî´Â Ç¥½ÃÇÏÁö ¾Ê´Â´Ù.
Data ±¸Á¶ #
| Command Group Code | Command | Spacer | Data2 |
size | 1 | 2 | 1 | var |
¿¹Á¦ | @ | IN | °ø¹é | id passwd |
{Command Group Code} : 1 byte ; ÆÐŶÀÇ ´ëºÐ·ùÄÚµå
{Command} : 2 byte ; Ä¿¸Çµå ¼ÒºÐ·ùÄÚµå
{Data2} Variable
- Data2´Â °ø¹é(' ', 0x20) ±âÁØÀ¸·Î ÅäÅ« ºÐ¸®ÇÑ´Ù.
- ¿¹Á¦
*@IN hello passwd\r
{*} Header Mark
{@} Command Code ; ·Î±×ÀÎ ·Î±×¾Æ¿ôµîÀÇ ÁÖ¿äÁ¦¾îÄÚµå±×·ì
{IN} Login Command ; ·Î±×ÀÎ, À̾î {ID}{Password}°¡ µû¶ó¿Â´Ù
{token1} ID
{token2} Password
{End Mark}
Sogon Protocols (Client to Server) #
±¸Çö¿Ï·áÇ¥½Ã | Mark | Group Code | Command | Spacer | Data2 | Mark | Desc |
| * | | | | | \r |
ÀÛ¾÷Áß | * | @ | IN | | (id) (password) | \r | ·Î±×ÀΠó¸®. ÀÌ¿¡ ´ëÇÑ ¼¹öÀÀ´äÀº °°Àº *@IN ÀÌ´Ù |
ÀÛ¾÷Áß | | . | SA | | (´ëȳ»¿ë) | | ´ëÈ.. ¸»ÇÏ´Ù, ¼¹öÀÀ´äÀº Ưº°È÷ ¾ø´Ù |
Sogon Protocols (Server to Client) #
±¸Çö¿Ï·áÇ¥½Ã | Mark | Group Code | Command | Spacer | Data2 | Mark | Desc |
| * | | | | | \r |
ÀÛ¾÷Áß | * | @ | IN | | (result) (description _) | \r | ·Î±×Àο¡ ´ëÇÑ ÀÀ´ä |
| | | | | | | result:X ·Î±×ÀκҰ¡ A:·Î±×Àμº°ø |