llmime.cpp File Reference

Implementation of mime tools. More...

#include "linden_common.h"
#include "llmime.h"
#include <vector>
#include "llmemorystream.h"

Include dependency graph for llmime.cpp:

Go to the source code of this file.

Classes

class  LLMimeIndex::Impl
 Implementation details of the mime index class. More...
class  LLMimeParser::Impl
 Implementation details of the mime parser class. More...

Functions

static const std::string CONTENT_LENGTH ("Content-Length")
static const std::string CONTENT_TYPE ("Content-Type")
static const std::string MULTIPART ("multipart")
static const std::string BOUNDARY ("boundary")
static const std::string END_OF_CONTENT_PARAMETER ("\r\n ;\t")
static const std::string SEPARATOR_PREFIX ("--")

Variables

static const S32 KNOWN_HEADER_COUNT = 6
static const std::string KNOWN_HEADER [KNOWN_HEADER_COUNT]


Detailed Description

Implementation of mime tools.

Author:
Phoenix
Date:
2006-12-20
LicenseInfo
firstyear=2006&license=viewergpl

Copyright (c) 2006-2007, Linden Research, Inc.

Second Life Viewer Source Code The source code in this file ("Source Code") is provided by Linden Lab to you under the terms of the GNU General Public License, version 2.0 ("GPL"), unless you have obtained a separate licensing agreement ("Other License"), formally executed by you and Linden Lab. Terms of the GPL can be found in doc/GPL-license.txt in this distribution, or online at http://secondlife.com/developers/opensource/gplv2

There are special exceptions to the terms and conditions of the GPL as it is applied to this Source Code. View the full text of the exception in the file doc/FLOSS-exception.txt in this software distribution, or online at http://secondlife.com/developers/opensource/flossexception

By copying, modifying or distributing this software, you acknowledge that you have read and understood your obligations described above, and agree to abide by those obligations.

ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, COMPLETENESS OR PERFORMANCE. $/LicenseInfo$

Definition in file llmime.cpp.


Function Documentation

static const std::string BOUNDARY ( "boundary"   )  [static]

Referenced by LLMimeParser::Impl::findSeparator().

static const std::string CONTENT_LENGTH ( "Content-Length"   )  [static]

Useful constants.

Referenced by LLMimeIndex::contentLength(), and LLMimeParser::Impl::scanPastContent().

static const std::string CONTENT_TYPE ( "Content-Type"   )  [static]

Referenced by LLMimeIndex::contentType(), LLMimeIndex::isMultipart(), and LLMimeParser::Impl::parseIndex().

static const std::string END_OF_CONTENT_PARAMETER ( "\r\n ;\t  )  [static]

Referenced by LLMimeParser::Impl::findSeparator().

static const std::string MULTIPART ( "multipart"   )  [static]

Referenced by LLMimeIndex::isMultipart().

static const std::string SEPARATOR_PREFIX ( "--"   )  [static]

Referenced by LLMimeParser::Impl::scanPastSeparator().


Variable Documentation

const std::string KNOWN_HEADER[KNOWN_HEADER_COUNT] [static]

Initial value:

{
        CONTENT_LENGTH,
        CONTENT_TYPE,
        std::string("MIME-Version"),
        std::string("Content-Transfer-Encoding"),
        std::string("Content-ID"),
        std::string("Content-Description"),
}

Definition at line 48 of file llmime.cpp.

Referenced by LLMimeParser::Impl::parseHeaders().

const S32 KNOWN_HEADER_COUNT = 6 [static]

Definition at line 47 of file llmime.cpp.

Referenced by LLMimeParser::Impl::parseHeaders().


Generated on Thu Jul 1 06:10:34 2010 for Second Life Viewer by  doxygen 1.4.7