*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->FreeBSD man pages -> accf_data (9)              
Title
Content
Arch
Section
 

ACCF_DATA(9)

Contents


NAME    [Toc]    [Back]

     accf_data -- buffer incoming connections until data arrives

SYNOPSIS    [Toc]    [Back]

     options INET
     options ACCEPT_FILTER_DATA
     kldload accf_data

DESCRIPTION    [Toc]    [Back]

     This is a filter to be placed on a socket that will be using accept() to
     receive incoming connections.

     It prevents the application from receiving the connected descriptor via
     accept() until data arrives on the connection.

     The ACCEPT_FILTER_DATA kernel option is also a module that can be enabled
     at runtime via kldload(8) if the INET option has been compiled into the
     kernel.

EXAMPLE    [Toc]    [Back]

     Assuming ACCEPT_FILTER_DATA has been included in the kernel config file
     or the accf_data module has been loaded, this will enable the data accept
     filter on the socket sok.

	     struct accept_filter_arg afa;

	     bzero(&afa, sizeof(afa));
	     strcpy(afa.af_name, "dataready");
	     setsockopt(sok, SOL_SOCKET, SO_ACCEPTFILTER, &afa, sizeof(afa));

SEE ALSO    [Toc]    [Back]

      
      
     setsockopt(2), accept_filter(9), accf_http(9)

HISTORY    [Toc]    [Back]

     The accept filter mechanism and the accf_data filter were introduced in
     FreeBSD 4.0.

AUTHORS    [Toc]    [Back]

     This manual page and the filter were written by Alfred Perlstein.


FreeBSD 5.2.1		       November 15, 2000		 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
accf_http FreeBSD buffer incoming connections until a certain complete HTTP requests arrive
listen Tru64 Listen for socket connections and limits the backlog of incoming connections
accept_filter FreeBSD filter incoming connections
pppoed FreeBSD handle incoming PPP over Ethernet connections
tsix_get_uid IRIX get the User ID of incoming data
tsix_get_mac IRIX get the MAC label of incoming data
SSL_peek Tru64 Copy the data in the SSL buffer into the buffer passed to this API
netstat Linux Print network connections, routing tables, interface statistics, masquerade connections, and multica...
dmAudioRateConvert IRIX convert data sampling rate. It consumes an input buffer of floats and generates an output buffer of floats.
biff FreeBSD be notified if mail arrives and who it is from
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service