head 1.4;
access;
symbols
LMTP2NNTP_1_0_0:1.3
LMTP2NNTP_0_9_7:1.3
LMTP2NNTP_0_9_6:1.3
LMTP2NNTP_0_9_5:1.3
LMTP2NNTP_0_9_4:1.2
LMTP2NNTP_0_9_3:1.2
LMTP2NNTP_0_9_2:1.2
LMTP2NNTP_0_9_1:1.2
LMTP2NNTP_0_9_0:1.2;
locks; strict;
comment @ * @;
1.4
date 2001.10.02.13.36.33; author rse; state dead;
branches;
next 1.3;
1.3
date 2001.09.04.09.46.06; author rse; state Exp;
branches;
next 1.2;
1.2
date 2001.08.12.13.44.10; author rse; state Exp;
branches;
next 1.1;
1.1
date 2001.08.07.09.04.32; author thl; state Exp;
branches;
next ;
desc
@@
1.4
log
@use the brand-new OSSP SA library (first cut)
@
text
@/*
** Copyright (c) 2001 The OSSP Project
** Copyright (c) 2001 Cable & Wireless Deutschland
**
** This file is part of OSSP lmtp2nntp, an LMTP speaking local
** mailer which forwards mails as Usenet news articles via NNTP.
** It can be found at http://www.ossp.org/pkg/lmtp2nntp/.
**
** This program is free software; you can redistribute it and/or
** modify it under the terms of the GNU General Public License
** as published by the Free Software Foundation; either version
** 2.0 of the License, or (at your option) any later version.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
** General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this file; if not, write to the Free Software
** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
** USA, or contact the OSSP project .
**
** sa.c: Socket Address library (API)
*/
#ifndef __SA_H__
#define __SA_H__
#include
#include
#include
#include
#include
typedef struct {
struct sockaddr *sa_buf;
socklen_t sa_len;
int sa_proto;
} sa_t;
enum {
SA_UNIX,
SA_IP
};
sa_t *sa_create(int, ...);
void sa_destroy(sa_t *);
#endif /* __SA_H__ */
@
1.3
log
@Finally apply GNU General Public License (GPL) to OSSP lmtp2nntp.
@
text
@@
1.2
log
@cleanup sa library
@
text
@d2 24
a25 28
* SA - Socket Address Library
* Copyright (c) 2001 The OSSP Project (http://www.ossp.org/)
* Copyright (c) 2001 Cable & Wireless Deutschland (http://www.cw.com/de/)
*
* This file is part of OSSP nntp2nntp, an SOCK speaking local
* mailer which forwards mails as Usenet news articles via SOCK.
* It can be found at http://www.ossp.com/pkg/nntp2nntp/.
*
* Permission to use, copy, modify, and distribute this software for
* any purpose with or without fee is hereby granted, provided that
* the above copyright notice and this permission notice appear in all
* copies.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
* IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* sa.h: API definition
*/
@
1.1
log
@sock is now sa (sockaddr) only
@
text
@d2 1
a2 2
* sa.h: Socket Address library (API definition)
*
d27 2
d31 2
a32 2
#ifndef __SOCK_H__
#define __SOCK_H__
d54 1
a54 1
#endif /* __SOCK_H__ */
@