# tcppair **Repository Path**: gitee211012/tcppair ## Basic Information - **Project Name**: tcppair - **Description**: No description available - **Primary Language**: Go - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-12-04 - **Last Updated**: 2021-12-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # tcppair ``` client proxy agent server | | | | | |<--auth request---| | | | | | | |----auth reply--->| | | | | | |-----connect----->| | | | | | | |<-----accept------| | | | |--proxy request-->| | | | |-----connect----->| | | | | | | |<-----accept------| | |<----response-----| | | | | | |- - - -data - - ->| | | | |- - - -data - - ->| | | | |- - - -data - - ->| | | | | | | |<- - - data- - - -| | |<- - - data- - - -| | |<- - - data- - - -| | | | | | | | | | | |<-----close------>|<-----close------>|<-----close------>| | | | | ``` ``` The auth request is formed as follows: +-----------+-----+----------+-----+----------+ | AUTH TYPE | LEN | USERNAME | LEN | PASSWORD | +-----------+-----+----------+-----+----------+ | 1 | 1 | 1 to 255 | 1 | 1 to 255 | +-----------+-----+----------+-----+----------+ Where: o AUTH TYPE o 0x00 NO AUTHENTICATION REQUIRED o 0x01 USERNAME/PASSWORD o LEN length of the USERNAME o USERNAME username o LEN length of the PASSWORD o PASSWORD password ```