tcpserver and tcpclient are easy-to-use command-line tools for building
TCP client-server applications. tcpserver and tcpclient conform to UCSPI, the UNIX Client-Server Program Interface, using the TCP protocol. UCSPI tools are available for several different networks. Submitted by: Camiel Dobbelaar <cd@sentia.nl>
This commit is contained in:
parent
d0d6327b62
commit
10dc6cf303
25
net/ucspi-tcp/Makefile
Normal file
25
net/ucspi-tcp/Makefile
Normal file
@ -0,0 +1,25 @@
|
||||
# OpenBSD$
|
||||
|
||||
DISTNAME= ucspi-tcp-0.84
|
||||
CATEGORIES= net
|
||||
MAINTAINER= cd@sentia.nl
|
||||
MASTER_SITES= ftp://ftp.net.ohio-state.edu/pub/networking/mail/qmail/ \
|
||||
ftp://ftp.ntnu.no/pub/unix/mail/qmail/ \
|
||||
ftp://ftp.mira.net.au/unix/mail/qmail/ \
|
||||
ftp://ftp.id.wustl.edu/pub/qmail/ \
|
||||
ftp://mirror.uk.uu.net/pub/qmail/ \
|
||||
ftp://ftp.jp.qmail.org/qmail/ \
|
||||
http://ftp.rifkin.technion.ac.il/pub/qmail/ \
|
||||
http://koobera.math.uic.edu/www/software/ \
|
||||
http://pobox.com/~djb/software/
|
||||
|
||||
NO_CONFIGURE= yes
|
||||
ALL_TARGET= default
|
||||
INSTALL_TARGET= setup check
|
||||
NO_MTREE= yes
|
||||
|
||||
pre-build:
|
||||
@${ECHO} ${CC} ${CFLAGS} > ${WRKSRC}/conf-cc
|
||||
@${ECHO} ${PREFIX} > ${WRKSRC}/conf-home
|
||||
|
||||
.include <bsd.port.mk>
|
3
net/ucspi-tcp/files/md5
Normal file
3
net/ucspi-tcp/files/md5
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (ucspi-tcp-0.84.tar.gz) = 2a3f481f145bd4445ce661ecfcfa29d2
|
||||
RMD160 (ucspi-tcp-0.84.tar.gz) = 2e21422f57fb5f47c8e48a287e24d41bc0bb2c1e
|
||||
SHA1 (ucspi-tcp-0.84.tar.gz) = 6b5705043b4a7025eab8d23d6cad405132374c26
|
24
net/ucspi-tcp/patches/patch-aa
Normal file
24
net/ucspi-tcp/patches/patch-aa
Normal file
@ -0,0 +1,24 @@
|
||||
--- hier.c.orig Tue Dec 21 20:53:15 1999
|
||||
+++ hier.c Tue Dec 21 20:53:36 1999
|
||||
@@ -2,14 +2,14 @@
|
||||
|
||||
void hier()
|
||||
{
|
||||
- h(auto_home,-1,-1,02755);
|
||||
+ h(auto_home,-1,-1,0755);
|
||||
|
||||
- d(auto_home,"bin",-1,-1,02755);
|
||||
- d(auto_home,"man",-1,-1,02755);
|
||||
- d(auto_home,"man/man1",-1,-1,02755);
|
||||
- d(auto_home,"man/cat1",-1,-1,02755);
|
||||
- d(auto_home,"man/man5",-1,-1,02755);
|
||||
- d(auto_home,"man/cat5",-1,-1,02755);
|
||||
+ d(auto_home,"bin",-1,-1,0755);
|
||||
+ d(auto_home,"man",-1,-1,0755);
|
||||
+ d(auto_home,"man/man1",-1,-1,0755);
|
||||
+ d(auto_home,"man/cat1",-1,-1,0755);
|
||||
+ d(auto_home,"man/man5",-1,-1,0755);
|
||||
+ d(auto_home,"man/cat5",-1,-1,0755);
|
||||
|
||||
c(auto_home,"bin","tcpclient",-1,-1,0711);
|
||||
c(auto_home,"bin","tcpserver",-1,-1,0711);
|
1
net/ucspi-tcp/pkg/COMMENT
Normal file
1
net/ucspi-tcp/pkg/COMMENT
Normal file
@ -0,0 +1 @@
|
||||
tools for building TCP client-server applications
|
31
net/ucspi-tcp/pkg/DESCR
Normal file
31
net/ucspi-tcp/pkg/DESCR
Normal file
@ -0,0 +1,31 @@
|
||||
tcpserver and tcpclient are easy-to-use command-line tools for building
|
||||
TCP client-server applications.
|
||||
|
||||
|
||||
tcpserver waits for incoming connections and, for each connection, runs
|
||||
a program of your choice. Your program receives environment variables
|
||||
showing the local and remote host names, IP addresses, and port numbers.
|
||||
|
||||
tcpserver offers a concurrency limit to protect you from running out of
|
||||
processes and memory. When you are handling 40 (by default) simultaneous
|
||||
connections, tcpserver smoothly defers acceptance of new connections.
|
||||
|
||||
tcpserver also provides TCP access control features, similar to
|
||||
tcp-wrappers/tcpd's hosts.allow but much faster. Its access control
|
||||
rules are compiled into a hashed format with cdb, so it can easily deal
|
||||
with thousands of different hosts.
|
||||
|
||||
This package includes a recordio tool that monitors all the input and
|
||||
output of a server.
|
||||
|
||||
|
||||
tcpclient makes a TCP connection and runs a program of your choice. It
|
||||
sets up the same environment variables as tcpserver.
|
||||
|
||||
This package includes several sample clients built on top of tcpclient:
|
||||
who@, date@, finger@, http@, tcpcat, and mconnect.
|
||||
|
||||
|
||||
tcpserver and tcpclient conform to UCSPI, the UNIX Client-Server Program
|
||||
Interface, using the TCP protocol. UCSPI tools are available for several
|
||||
different networks.
|
48
net/ucspi-tcp/pkg/PLIST
Normal file
48
net/ucspi-tcp/pkg/PLIST
Normal file
@ -0,0 +1,48 @@
|
||||
bin/addcr
|
||||
bin/argv0
|
||||
bin/date@
|
||||
bin/delcr
|
||||
bin/finger@
|
||||
bin/fixcr
|
||||
bin/http@
|
||||
bin/mconnect
|
||||
bin/mconnect-io
|
||||
bin/recordio
|
||||
bin/tcpcat
|
||||
bin/tcpclient
|
||||
bin/tcprules
|
||||
bin/tcprulescheck
|
||||
bin/tcpserver
|
||||
bin/who@
|
||||
man/cat1/addcr.0
|
||||
man/cat1/argv0.0
|
||||
man/cat1/date@.0
|
||||
man/cat1/delcr.0
|
||||
man/cat1/finger@.0
|
||||
man/cat1/fixcr.0
|
||||
man/cat1/http@.0
|
||||
man/cat1/mconnect.0
|
||||
man/cat1/recordio.0
|
||||
man/cat1/tcpcat.0
|
||||
man/cat1/tcpclient.0
|
||||
man/cat1/tcprules.0
|
||||
man/cat1/tcprulescheck.0
|
||||
man/cat1/tcpserver.0
|
||||
man/cat1/who@.0
|
||||
man/cat5/tcp-environ.0
|
||||
man/man1/addcr.1
|
||||
man/man1/argv0.1
|
||||
man/man1/date@.1
|
||||
man/man1/delcr.1
|
||||
man/man1/finger@.1
|
||||
man/man1/fixcr.1
|
||||
man/man1/http@.1
|
||||
man/man1/mconnect.1
|
||||
man/man1/recordio.1
|
||||
man/man1/tcpcat.1
|
||||
man/man1/tcpclient.1
|
||||
man/man1/tcprules.1
|
||||
man/man1/tcprulescheck.1
|
||||
man/man1/tcpserver.1
|
||||
man/man1/who@.1
|
||||
man/man5/tcp-environ.5
|
Loading…
Reference in New Issue
Block a user