doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Macros | Enumerations | Functions
telnet.c File Reference
#include "setup.h"
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include <stdlib.h>
#include <ctype.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
#include <netinet/in.h>
#include <sys/time.h>
#include <netdb.h>
#include <sys/ioctl.h>
#include <signal.h>
#include "urldata.h"
#include <curl/curl.h>
#include "transfer.h"
#include "sendf.h"
#include "telnet.h"
#include <curl/mprintf.h>
#include "arpa_telnet.h"

Go to the source code of this file.

Classes

struct  TELNET
 

Macros

#define _MPRINTF_REPLACE   /* use our functions only */
 
#define TELOPTS
 
#define TELCMDS
 
#define SUBBUFSIZE   512
 
#define CURL_SB_CLEAR(x)   x->subpointer = x->subbuffer;
 
#define CURL_SB_TERM(x)   { x->subend = x->subpointer; CURL_SB_CLEAR(x); }
 
#define CURL_SB_ACCUM(x, c)
 
#define CURL_SB_GET(x)   ((*x->subpointer++)&0xff)
 
#define CURL_SB_PEEK(x)   ((*x->subpointer)&0xff)
 
#define CURL_SB_EOF(x)   (x->subpointer >= x->subend)
 
#define CURL_SB_LEN(x)   (x->subend - x->subpointer)
 
#define CURL_NO   0
 
#define CURL_YES   1
 
#define CURL_WANTYES   2
 
#define CURL_WANTNO   3
 
#define CURL_EMPTY   0
 
#define CURL_OPPOSITE   1
 

Enumerations

enum  TelnetReceive {
  CURL_TS_DATA = 0, CURL_TS_IAC, CURL_TS_WILL, CURL_TS_WONT,
  CURL_TS_DO, CURL_TS_DONT, CURL_TS_CR, CURL_TS_SB,
  CURL_TS_SE
}
 

Functions

CURLcode Curl_telnet_done (struct connectdata *conn)
 
CURLcode Curl_telnet (struct connectdata *conn)
 

Macro Definition Documentation

#define _MPRINTF_REPLACE   /* use our functions only */

Definition at line 77 of file telnet.c.

#define CURL_EMPTY   0

Definition at line 133 of file telnet.c.

#define CURL_NO   0

Definition at line 128 of file telnet.c.

#define CURL_OPPOSITE   1

Definition at line 134 of file telnet.c.

#define CURL_SB_ACCUM (   x,
  c 
)
Value:
if (x->subpointer < (x->subbuffer+sizeof x->subbuffer)) { \
*x->subpointer++ = (c); \
}
GLenum GLint x
Definition: glext.h:2849
const GLubyte * c
Definition: glext.h:4677

Definition at line 94 of file telnet.c.

#define CURL_SB_CLEAR (   x)    x->subpointer = x->subbuffer;

Definition at line 92 of file telnet.c.

#define CURL_SB_EOF (   x)    (x->subpointer >= x->subend)

Definition at line 101 of file telnet.c.

#define CURL_SB_GET (   x)    ((*x->subpointer++)&0xff)

Definition at line 99 of file telnet.c.

#define CURL_SB_LEN (   x)    (x->subend - x->subpointer)

Definition at line 102 of file telnet.c.

#define CURL_SB_PEEK (   x)    ((*x->subpointer)&0xff)

Definition at line 100 of file telnet.c.

#define CURL_SB_TERM (   x)    { x->subend = x->subpointer; CURL_SB_CLEAR(x); }

Definition at line 93 of file telnet.c.

#define CURL_WANTNO   3

Definition at line 131 of file telnet.c.

#define CURL_WANTYES   2

Definition at line 130 of file telnet.c.

#define CURL_YES   1

Definition at line 129 of file telnet.c.

#define SUBBUFSIZE   512

Definition at line 90 of file telnet.c.

#define TELCMDS

Definition at line 81 of file telnet.c.

#define TELOPTS

Definition at line 80 of file telnet.c.

Enumeration Type Documentation

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.

Function Documentation

CURLcode Curl_telnet ( struct connectdata conn)

Definition at line 1078 of file telnet.c.

CURLcode Curl_telnet_done ( struct connectdata conn)

Definition at line 1067 of file telnet.c.