#include "curl_setup.h"
#include "urldata.h"
#include <curl/curl.h>
#include "transfer.h"
#include "sendf.h"
#include "telnet.h"
#include "connect.h"
#include "progress.h"
#include "system_win32.h"
#include "arpa_telnet.h"
#include "select.h"
#include "strcase.h"
#include "warnless.h"
#include "curl_printf.h"
#include "curl_memory.h"
#include "memdebug.h"
Go to the source code of this file.
|
| static CURLcode | check_telnet_options (struct connectdata *conn) |
| |
| static CURLcode | init_telnet (struct connectdata *conn) |
| |
| static void | negotiate (struct connectdata *) |
| |
| static void | printoption (struct Curl_easy *data, const char *direction, int cmd, int option) |
| |
| static void | printsub (struct Curl_easy *data, int direction, unsigned char *pointer, size_t length) |
| |
| static void | rec_do (struct connectdata *conn, int option) |
| |
| static void | rec_dont (struct connectdata *conn, int option) |
| |
| static void | rec_will (struct connectdata *conn, int option) |
| |
| static void | rec_wont (struct connectdata *conn, int option) |
| |
| static void | send_negotiation (struct connectdata *, int cmd, int option) |
| |
| static CURLcode | send_telnet_data (struct connectdata *conn, char *buffer, ssize_t nread) |
| |
| static void | sendsuboption (struct connectdata *conn, int option) |
| |
| static void | set_local_option (struct connectdata *, int cmd, int option) |
| |
| static void | set_remote_option (struct connectdata *, int cmd, int option) |
| |
| static void | suboption (struct connectdata *) |
| |
| static CURLcode | telnet_do (struct connectdata *conn, bool *done) |
| |
| static CURLcode | telnet_done (struct connectdata *conn, CURLcode, bool premature) |
| |
| static CURLcode | telrcv (struct connectdata *, const unsigned char *inbuf, ssize_t count) |
| |
◆ bufferflush
◆ CURL_EMPTY
◆ CURL_NO
◆ CURL_OPPOSITE
◆ CURL_SB_ACCUM
| #define CURL_SB_ACCUM |
( |
|
x, |
|
|
|
c |
|
) |
| |
Value: do { \
if(x->subpointer < (x->subbuffer + sizeof x->subbuffer)) \
*x->subpointer++ = (c); \
Definition at line 77 of file telnet.c.
◆ CURL_SB_CLEAR
| #define CURL_SB_CLEAR |
( |
|
x | ) |
x->subpointer = x->subbuffer |
◆ CURL_SB_GET
| #define CURL_SB_GET |
( |
|
x | ) |
((*x->subpointer++)&0xff) |
◆ CURL_SB_LEN
| #define CURL_SB_LEN |
( |
|
x | ) |
(x->subend - x->subpointer) |
◆ CURL_SB_TERM
| #define CURL_SB_TERM |
( |
|
x | ) |
|
Value: do { \
x->subend = x->subpointer; \
CURL_SB_CLEAR(x); \
Definition at line 72 of file telnet.c.
◆ CURL_WANTNO
◆ CURL_WANTYES
◆ CURL_YES
◆ startskipping
| #define startskipping |
( |
| ) |
|
Value: if(startwrite >= 0) { \
(char *)&inbuf[startwrite], \
in-startwrite); \
} \
startwrite = -1
◆ SUBBUFSIZE
◆ TELCMDS
◆ TELOPTS
◆ writebyte
Value: if(startwrite < 0) \
startwrite = in
◆ TelnetReceive
| Enumerator |
|---|
| CURL_TS_DATA | |
| CURL_TS_IAC | |
| CURL_TS_WILL | |
| CURL_TS_WONT | |
| CURL_TS_DO | |
| CURL_TS_DONT | |
| CURL_TS_CR | |
| CURL_TS_SB | |
| CURL_TS_SE | |
Definition at line 139 of file telnet.c.
◆ check_telnet_options()
◆ init_telnet()
◆ negotiate()
◆ printoption()
| static void printoption |
( |
struct Curl_easy * |
data, |
|
|
const char * |
direction, |
|
|
int |
cmd, |
|
|
int |
option |
|
) |
| |
|
static |
◆ printsub()
| static void printsub |
( |
struct Curl_easy * |
data, |
|
|
int |
direction, |
|
|
unsigned char * |
pointer, |
|
|
size_t |
length |
|
) |
| |
|
static |
◆ rec_do()
| static void rec_do |
( |
struct connectdata * |
conn, |
|
|
int |
option |
|
) |
| |
|
static |
◆ rec_dont()
| static void rec_dont |
( |
struct connectdata * |
conn, |
|
|
int |
option |
|
) |
| |
|
static |
◆ rec_will()
| static void rec_will |
( |
struct connectdata * |
conn, |
|
|
int |
option |
|
) |
| |
|
static |
◆ rec_wont()
| static void rec_wont |
( |
struct connectdata * |
conn, |
|
|
int |
option |
|
) |
| |
|
static |
◆ send_negotiation()
| static void send_negotiation |
( |
struct connectdata * |
conn, |
|
|
int |
cmd, |
|
|
int |
option |
|
) |
| |
|
static |
◆ send_telnet_data()
◆ sendsuboption()
| static void sendsuboption |
( |
struct connectdata * |
conn, |
|
|
int |
option |
|
) |
| |
|
static |
◆ set_local_option()
| static void set_local_option |
( |
struct connectdata * |
conn, |
|
|
int |
cmd, |
|
|
int |
option |
|
) |
| |
|
static |
◆ set_remote_option()
| static void set_remote_option |
( |
struct connectdata * |
conn, |
|
|
int |
cmd, |
|
|
int |
option |
|
) |
| |
|
static |
◆ suboption()
◆ telnet_do()
◆ telnet_done()
◆ telrcv()
◆ Curl_handler_telnet
Initial value:
Definition at line 180 of file telnet.c.