ossp-pkg/lmtp2nntp/sa.c 1.1 -> 1.2
--- 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 <stdio.h>
@@ -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;
}
|
|