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
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
> 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
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
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
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
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
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
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
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
>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
"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
> > 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
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
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"
>
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
> 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
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
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
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
[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
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
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
23 matches
Mail list logo