Sockets

2000-06-23 Thread Steinitz, Dominic J
How do I use sockets in Haskell? The ghc manual had some information in the users guide (6.7 Interfaces to C libraries) but the sentence which started tantalisingly "Various examples of networking Haskell code are provided in " had no second half. I'd prefer to use hugs dur

Re: Sockets

2000-06-23 Thread William Lee Irwin III
On Fri, Jun 23, 2000 at 11:51:56AM +, Steinitz, Dominic J wrote: > How do I use sockets in Haskell? The ghc manual had some information > in the users guide (6.7 Interfaces to C libraries) but the sentence > which started tantalisingly > > "Various examples of network

RE: Sockets

2000-06-27 Thread Simon Marlow
> How do I use sockets in Haskell? The ghc manual had some > information in the users guide (6.7 Interfaces to C > libraries) but the sentence which started tantalisingly > > "Various examples of networking Haskell code are provided in " > > had no second ha

Sockets & Green Card

1998-05-04 Thread Vasili Galchin
Dear Haskell Community, Two questions: 1) Where are the Berkeley Sockets Library functions actually defined? I.e in which file?? Can Hugs use this?? 2) In the above 1), obviously this uses green card for foreign language calls? Regards, Bill Halchin

Simple sockets sample?

2002-01-27 Thread Dominic Cooney
Does anybody know of a simple GHC Socket sample? I want to retrieve an HTTP URL, but I keep getting errors like this: Main> main *** Exception: failed Action: fileSize Reason: Bad file descriptor A minimal program that exhibits the problem is below. I am using GHC 5.02 on Win XP Pro. When I ente

Sockets and firewalls

2002-02-28 Thread Till Mossakowski
Hello, I have seen that there are several Haskell libraries for cgi scripts and the like. Is there also a possibiliy to deal with sockets and firewalls? Till Mossakowski -- Till MossakowskiPhone +49-421-218-4683 Dept. of Computer Science Fax +49-421-218-3054 University of

flock and sockets

2003-03-19 Thread Daniel Luna
I am planning a Haskell project and I need to access files. Since the program will be automatically started whenever a mail comes in I will need to be able to lock the access to files. Is there any support for this in some library? The second option that I have is to use a daemon and let the progr

Re: Sockets & Green Card

1998-05-04 Thread Sigbjorn Finne
Vasili Galchin writes: > >Two questions: > > 1) Where are the Berkeley Sockets Library functions actually >defined? I.e in which file?? Can Hugs use this?? Hi, I'm not sure if this is what you're asking for, but GHC comes with a BSD networking

Re: Sockets & Green Card

1998-05-05 Thread Sigbjorn Finne
Sven Panne writes: > > Moving to a standard is a good thing, but Green Card seems to move > faster than existing code for it can be adapted. What is the schedule > for GC3 and will there be something like a GC2->GC3 converter? > Hope to have a release ready soon. A translator that spits out ID

Re: Sockets & Green Card

1998-05-05 Thread Sven Panne
Sigbjorn Finne wrote: > [...] > It is on our GHC ToDo lists to convert GHC's various libraries to use > Green Card, but this won't happen before we've got a working&stable IDL > compiler. (Green Card 3 (aka H/Direct) will use IDL to interface to > external libs instead of the homegrown language us

RE: Sockets & Green Card

1998-05-06 Thread Frank A. Christoph
>Hope to have a release ready soon. A translator that spits out IDL >specs given Green Card 2 input will not be supplied, as the two >approaches to describing bindings to foreign functionality are >fundamentally different. Green Card 2 starts with a Haskell type >signature and tries to derive the

Re: Simple sockets sample?

2002-01-27 Thread Jens Petersen
"Dominic Cooney" <[EMAIL PROTECTED]> writes: > Does anybody know of a simple GHC Socket sample? I want to retrieve an > HTTP URL, but I keep getting errors like this: Funny I was trying to do the same this morning on the way to work. > A minimal program that exhibits the problem is below. I am

Re: Simple sockets sample?

2002-01-27 Thread Johannes Waldmann
> > Does anybody know of a simple GHC Socket sample? the ghc Sockets module (-syslib net) is/was broken in 5.02 it works with 5.00.2 (I did not check the more recent versions.) a minimal example using sockets is a the bottom of this page: http://www.informatik.uni-leipzig.de/~joe/edu/w

RE: Simple sockets sample?

2002-01-27 Thread Dominic Cooney
TECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Jens Petersen Sent: Monday, 28 January 2002 4:33 PM To: Dominic Cooney Cc: [EMAIL PROTECTED] Subject: Re: Simple sockets sample? "Dominic Cooney" <[EMAIL PROTECTED]> writes: > Does anybody know of a simple GHC Socket sample? I wan

Re: Simple sockets sample?

2002-01-28 Thread Jens Petersen
Jens Petersen <[EMAIL PROTECTED]> writes: > "Dominic Cooney" <[EMAIL PROTECTED]> writes: > > > > sendTo host port "GET / HTTP/1.0\r\n\r\n"; > > Hmmm, I was trying something more like (under Linux): > > do > h <- connectTo host port > hPutStrLn h "GET / HTTP/1.0\n" >

Re: Sockets and firewalls

2002-02-28 Thread Christoph Lueth
Till Mossakowski <[EMAIL PROTECTED]> writes: > Hello, > > I have seen that there are several Haskell libraries > for cgi scripts and the like. Is there also a possibiliy > to deal with sockets and firewalls? Yes, there's the Sockets module in the ghc library, which al

RE: flock and sockets

2003-03-19 Thread Simon Marlow
> I am planning a Haskell project and I need to access files. Since the > program will be automatically started whenever a mail comes > in I will need > to be able to lock the access to files. Is there any support > for this in some library? Yes, the Posix library distributed with GHC has suppor

RE: flock and sockets

2003-03-20 Thread John Hughes
On Wed, 19 Mar 2003, Simon Marlow wrote: > > I am planning a Haskell project and I need to access files. Since the > > program will be automatically started whenever a mail comes > > in I will need > > to be able to lock the access to files. Is there any support > > for this in some library? > > Y

RE: flock and sockets

2003-03-20 Thread oleg
e, your application _only_ needs to read from the standard input and write into the standard output. An interactive (that is, not a single request-single reply) daemon should also be able to flush the standard output or set it to an unbuffered/line buffered discipline. The application needs

sockets and handles in ghc

2003-06-27 Thread Jurriaan Hage
Hello, I've been using sockets and handles with ghc-5.04.3. The strange thing is now that when I make a handle out of a socket and ask whether the handle is readable or writable, it returns True for the former and False for the latter, although sockets are bidirectional. And yes, I am ab

Re: sockets and handles in ghc

2003-06-27 Thread Volker Stolz
[Moving to [EMAIL PROTECTED] In local.haskell, you wrote: > I've been using sockets and handles with ghc-5.04.3. > The strange thing is now that when I make a handle > out of a socket and ask whether the handle is readable > or writable, it returns True for the former and False

[Haskell] ANNOUNCE: secure-sockets version 1.0

2010-09-05 Thread David Anderson
Hi, I'm happy to announce the first release of secure-sockets, a library which aims to simplify the task of communicating securely between two authenticated peers. -- What it is The API mimicks th

[Haskell] sendfile-0.4 released: sockets and freebsd and docs oh my!

2009-07-18 Thread Matthew Elder
sendfile-0.4: http://hackage.haskell.org/package/sendfile * FreeBSD support contributed by Maxime Henrion (untested!) * sendFile is now unsafeSendFile (continued support for a Handle as the output) * sendFi