1. Linux BSD style socket wrapper

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 message » categorize

2. Re: Linux BSD style socket wrapper

On Wed, 16 Aug 2000, you wrote:
> 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.

Please continue - this is something that would be really nice to have.
If you need someone to test or help with the docs, I'll volunteer.

Regards,
Irv

new topic     » goto parent     » topic index » view message » categorize

3. Re: Linux BSD style socket wrapper

On Wed, 16 Aug 2000, Irv Mullins wrote:
> Please continue - this is something that would be really nice to have.
> If you need someone to test or help with the docs, I'll volunteer.
>
> Regards,
> Irv

Thanks Irv. I would like your help testing but there is still about 2-3 days
worth of work until i can release a beta version for testers. As far as the
docs go,  any voluteers ( such as yourself ) and participants ( me ) could
perhaps discuss who will document what routines when the initial beta testing
is all over with. ( i have about 7 or so routines already documented )

once again, thank you and i will try to get a testable beta version out to you
asap. Anyone else want that beta version minus some documentation when i send a
copy to Irv?

--
cense
a member of the
ak-software development team
http://ak-software.virtualave.net/

new topic     » goto parent     » topic index » view message » categorize

4. Re: Linux BSD style socket wrapper

Hi Everyone,

Some of you might remember me from a year or so ago when I asked some
Euphoria questions on the list, I'M BACK!!!!

A year ago I wanted to write a wrapper for a cross platform TCP library
called TCP4U, but I had no idea how to do it and gave up dismally.

I was playing with TCP4U with Visual Basic a few weeks ago and saw how easy
it was to write a wrapper in VB and decided to try it in Euphoria again.

I have some of the basics done and was planning to finish it in the next
month or so. I had planned doing it sooner but suddenly I have been very
busy building an indoor aviary for our new acquired pet Eclectus parrot so
I'll be putting on my handyman cap for the next week or so, then I should
be back into some Euphoria fun.

I have always had an interest in sock programming and that's about the only
reason I'm doing it ... just for fun.

TCP4U seems like a very good library that works in Windows and Linux (plus
others) and I think it has some potentional for use in Euphoria.
I'm not saying use my library (if it's ever finished) over your BSD style
wrapper cense, just mentioning it as a possible alternative.
The only reason I mentioned it is because it is related to your project.

If anyone is interested reply back.

By the way things have changed quiet a bit here in Euphoria land in the
last year or so.  It has really progressed very nicely.  The Euphoria
community has always been friendly and helpful.

Regards,

Ray Smith


>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     » goto parent     » topic index » view message » categorize

5. Re: Linux BSD style socket wrapper

On Thu, 17 Aug 2000, Ray Smith wrote:
> I'm not saying use my library (if it's ever finished) over your BSD style
> wrapper cense, just mentioning it as a possible alternative.
> The only reason I mentioned it is because it is related to your project.
>
> If anyone is interested reply back.
>
> Regards,
>
> Ray Smith
>

its all good Ray, Euphoria is not about competition. My wrapper lib is just for
basic low-overhead socket stuff that does not require an entire library as does
yours. Im sure my project is substantially smaller (in code ) and thus less
work for me.

It will be good to have an alternative to my wrapper out there. have fun coding
it.

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

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu