src/socks_parser.c File Reference
SOCKS5 protocol parser.
More...
Detailed Description
SOCKS5 protocol parser.
- Date:
- 09 Mar 2010
- Author:
- Zachary Sims <zacs7@users.sourceforge.net>
Module prefix: sxp_
$Id$
Typedef Documentation
Enumeration Type Documentation
- Enumerator:
SXP_STATE_NONE |
|
SXP_STATE_IDENTIFIED |
|
SXP_STATE_REQUESTED |
|
Function Documentation
Feed octets to the parser.
- Parameters:
-
| transaction | The transaction to fill. |
| data | The octets. |
| dataLen | The number of octets we can parse. |
| ate | A pointer to a counter where the number of bytes eaten will be kept. |
- Returns:
- a
sxp_feed_result_e
value.
Get a description of an error that this transaction had.
- Parameters:
-
| transaction | The transaction to return the error from. |
- Returns:
- A string literal of the error. If there is no error descriptio NULL is returned
Return whether or not we have parsed the "identify" message.
- Parameters:
-
| transaction | The transaction to inspect. |
- Returns:
- true if it's being parsed (and can be accessed). Otherwise, false is returned.
Return whether or not we have parsed the "request" message.
- Parameters:
-
| transaction | The transaction to inspect. |
- Returns:
- true if it's being parsed (and can be accessed). Otherwise, false is returned.
Create a new blank SOCKS transaction, ready for parsing.
- See also:
- sxp_transaction_free()
- Returns:
- A blank transaction on success. On error, NULL is returned.