Linux BSD style socket wrapper

new topic     » topic index » view thread      » older message » newer message

Hello all,

as a few of you may remember ( not many i dont think ) i told this list a while
ago that i was working on a full set of BSD style socket wrappers for the
GNU/Linux platform. Well i have once again started working on the project and i
am close to completion.

I was just wondering whether there is still ( was there ever? ) any demand for
such a product on this list? If there is i will make sure to send a copy of it
to Rob when i am done. If not, i dont think i will bother.

One more thing, writing the documentation for such a project is long and
tedious. I was wondering whether someone might want to help me out and write
some of routine reference with me. I have a system of doin this so all i really
need is just more man power. Here is what a sample of the routine reference
looks like:

### leftsock routine reference ###

listed here are all the euphoria linux ( bsd ) socket routines leftsock allows
you
to use. they are all in alphabetical order and each one has a description on how
to use it in a euphoria program.

these are the constants that will be used throught the function reference:

sd                      -> socket descriptor
a                       -> atom
i                       -> integer
ci                      -> "C" int
ul                      -> "C" unsigned long int
us                      -> "C" unsigned short int
ui                      -> "C" unsigned int
ch                      -> "C" char
ptr                     -> pointer to memory
s                       -> generic sequence
addr_in                 -> sequence where { sin_family, sin_port, s_addr,
sin_zero }

//===================================================================================\\

routine: accept
syntax:  accept( ci, addr_in, ci2 )

description: the accept function this allows a socket server to accept
connections
from clients. returns "status" where 0 = error, 1+ = clean
             execution

example:

integer status
sequence myaddr_in

-- populate the myaddr_in sequence

status = accept( sd, myaddr_in, sizeof( myaddr_in ) )

//===================================================================================\\

thanks for any responses to this post.

--
cense
a member of the
ak-software development team
http://www.ak-software.com/

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu