Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

tcp.cpp File Reference

#include <unistd.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <netdb.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <arpa/inet.h>
#include <fcntl.h>
#include <errno.h>
#include "rdesktop.h"

Include dependency graph for tcp.cpp:

Go to the source code of this file.

Defines

#define INADDR_NONE   ((unsigned long) -1)

Functions

STREAM tcp_init (unsigned int maxlen)
void tcp_send (STREAM s)
STREAM tcp_recv (unsigned int length)
BOOL tcp_connect (char *server)
void tcp_disconnect (void)

Variables

static int sock
static struct stream in
static struct stream out
int tcp_port_rdp


Define Documentation

#define INADDR_NONE   ((unsigned long) -1)
 

Definition at line 33 of file tcp.cpp.

Referenced by tcp_connect().


Function Documentation

BOOL tcp_connect char *  server  ) 
 

Definition at line 124 of file tcp.cpp.

References stream::data, error(), False, INADDR_NONE, NULL, stream::size, sock, tcp_port_rdp, True, and xmalloc().

Referenced by iso_connect().

void tcp_disconnect void   ) 
 

Definition at line 178 of file tcp.cpp.

References sock.

Referenced by iso_connect(), and iso_disconnect().

STREAM tcp_init unsigned int  maxlen  ) 
 

Definition at line 43 of file tcp.cpp.

References stream::data, stream::end, stream::p, stream::size, and xrealloc().

Referenced by iso_init(), and iso_send_msg().

STREAM tcp_recv unsigned int  length  ) 
 

Definition at line 82 of file tcp.cpp.

References stream::data, stream::end, error(), NULL, stream::p, stream::size, sock, ui_select(), and xrealloc().

Referenced by iso_recv_msg().

void tcp_send STREAM  s  ) 
 

Definition at line 58 of file tcp.cpp.

References stream::data, stream::end, error(), and sock.

Referenced by iso_send(), and iso_send_msg().


Variable Documentation

struct stream in [static]
 

Definition at line 37 of file tcp.cpp.

Referenced by SearchDiag::accept(), AddressList::addContact(), ChordEngine::calculate(), createSymlinks(), QDawgPrivate::dump(), QTrie::dump(), fetchtr_ui(), Global::fixedDawg(), NmakeMakefileGenerator::init(), MingwMakefileGenerator::init(), BorlandMakefileGenerator::init(), UnixMakefileGenerator::init2(), OFileSelector::initViews(), Opie::Ui::OFileSelector::initViews(), MetaTranslator::load(), MimeType::loadExtensions(), loadFile(), SFCave::loadReplay(), Game::loadReplay(), QRegExpEngine::matchHere(), DBCsv::openSource(), Opie::Global::encodeBase64(), QRegExpEngine::parseFactor(), VideoWidget::playVideo(), ServerPI::process(), readFile(), removeSymlinks(), SearchDiag::SearchDiag(), SearchDiag::slotIMAPSelect(), QString::sprintf(), BorlandMakefileGenerator::writeBorlandParts(), UnixMakefileGenerator::writeMakeParts(), MingwMakefileGenerator::writeMingwParts(), and NmakeMakefileGenerator::writeNmakeParts().

struct stream out [static]
 

Definition at line 38 of file tcp.cpp.

Referenced by createSymlinks(), Opie::Core::OGlobal::decodeBase64(), MiscFunctions::decodeQPrintable(), Opie::Core::OGlobal::encodeBase64(), WordGame::endGame(), Doc_DirLister::files(), Win32MakefileGenerator::findDependency(), UnixMakefileGenerator::findDependency(), Win32MakefileGenerator::findLibraries(), AddressList::getRightString(), NmakeMakefileGenerator::init(), MingwMakefileGenerator::init(), BorlandMakefileGenerator::init(), UnixMakefileGenerator::init2(), Referee::introPlay(), Board::isWay(), WordGame::mayEndGame(), Opie::Global::encodeBase64(), IRCMessageParser::parseNumerical(), IRCMessageParser::parseNumericalServerProtocol(), OpieTooth::Parser::parseRecHandle(), VideoWidget::playVideo(), ServerPI::process(), VcprojGenerator::processPrlVariable(), DspMakefileGenerator::processPrlVariable(), MakefileGenerator::processPrlVariable(), MetrowerksMakefileGenerator::processPrlVariable(), readElem(), Board::reset(), Categories::save(), OTodoAccessXML::save(), Opie::OPimTodoAccessXML::save(), OContactAccessBackend_XML::save(), Opie::OPimContactAccessBackend_XML::save(), SFCave::saveReplay(), Game::saveReplay(), Board::set(), Board::setup(), QString::sprintf(), QLocalePrivate::systemLocaleName(), QDateTime::toString(), BorlandMakefileGenerator::writeBorlandParts(), UnixMakefileGenerator::writeMakeParts(), MingwMakefileGenerator::writeMingwParts(), NmakeMakefileGenerator::writeNmakeParts(), and UnixMakefileGenerator::writeSubdirs().

int sock [static]
 

Definition at line 36 of file tcp.cpp.

Referenced by main(), ScreenshotControl::performGrab(), tcp_connect(), tcp_disconnect(), LibMadPlugin::tcp_open(), tcp_recv(), tcp_send(), LibMadPlugin::udp_open(), and WellenreiterMainWindow::uploadSession().

int tcp_port_rdp
 

Definition at line 56 of file rdesktop.cpp.

Referenced by tcp_connect().


Generated on Sat Nov 5 17:04:15 2005 for OPIE by  doxygen 1.4.2