Index: ossp-pkg/lmtp2nntp/sa.c RCS File: /v/ossp/cvs/ossp-pkg/lmtp2nntp/Attic/sa.c,v rcsdiff -q -kk '-r1.1' '-r1.2' -u '/v/ossp/cvs/ossp-pkg/lmtp2nntp/Attic/sa.c,v' 2>/dev/null --- sa.c 2001/08/07 09:04:31 1.1 +++ sa.c 2001/08/12 13:44:10 1.2 @@ -1,6 +1,5 @@ /* - * sa.c: Socket Address library (implementation) - * + * 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/) * @@ -25,6 +24,8 @@ * 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.c: implementation */ #include @@ -155,16 +156,6 @@ rc->sa_len = sl; rc->sa_proto = nProto; - /* create socket - * if ((s = socket(rc->sa_buf->sa_family, SOCK_STREAM, rc->sa_proto)) == -1) - * return NULL; - */ - - /* connect socket to remote host/port - * - * if (connect(s, rc->sa_buf, rc->sa_len) < 0) - * return -1; - */ return rc; } Index: ossp-pkg/lmtp2nntp/sa.h RCS File: /v/ossp/cvs/ossp-pkg/lmtp2nntp/Attic/sa.h,v rcsdiff -q -kk '-r1.1' '-r1.2' -u '/v/ossp/cvs/ossp-pkg/lmtp2nntp/Attic/sa.h,v' 2>/dev/null --- sa.h 2001/08/07 09:04:32 1.1 +++ sa.h 2001/08/12 13:44:10 1.2 @@ -1,6 +1,5 @@ /* - * sa.h: Socket Address library (API definition) - * + * 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/) * @@ -25,10 +24,12 @@ * 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 */ -#ifndef __SOCK_H__ -#define __SOCK_H__ +#ifndef __SA_H__ +#define __SA_H__ #include #include @@ -50,5 +51,5 @@ sa_t *sa_create(int, ...); void sa_destroy(sa_t *); -#endif /* __SOCK_H__ */ +#endif /* __SA_H__ */