Sockets

From: Jupiterhost.Net (mlists_at_jupiterhost.net)
Date: 04/28/04


Date: Wed, 28 Apr 2004 14:24:38 -0500
To:  beginners@perl.org

Hello list,

I've been playing with sockets a bit lately.

I've studied and run this client/server example:
  http://www.qiksearch.com/articles/perl_sockets.htm

I've been looking at
 
http://hotwired.lycos.com/webmonkey/97/18/index2a_page2.html?tw=programming

also trying to wrap the old noggin around Sockets...

I'd like to play around with this also but I'm not sure how I'd go about
writing a client for that...

I looked at the client example in the first link but I'm not sure how to
  do anything but send() data.

How do I also get what the server sends back?

Would I have to accept() and recv() right after I send()?

How about accept() and recv() when I havn't entered anything where/how
would that go?

Any pointers would be most appreciated :)

Lee.M - JupiterHost.Net



Relevant Pages

  • Re: Banana Republic (was Re: OpenVMS Book Wins award)
    ... client ... No bollocks HTTP, SOAP, XML, Java, Garbage ... receive messages from any number of server processes who in turn could be ... Unlike TCP/IP and/or UDP Sockets with Java that have been around since ...
    (comp.os.vms)
  • Re: Asynchronous socket programming vs. remoting
    ... You are the first person that said I should use sockets. ... them quicker than I can load them from my harddrive using the file system. ... It scales nice too - I tried throwing 400 requests at the server in a span ... > do not need the same assembly on the client and server. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Emulating I/O Completion Port on Win98.
    ... or for GUI programs - use async I/O ... > My Client is an FTP Client and I thought emulating IOCP would be the best ... > solution under Win98 to quickly copy a big file from the FTP Server. ... >>> monitor thread created dedicates to check the IO status of the sockets ...
    (microsoft.public.win32.programmer.networks)
  • Re: Dynamic C to C Data Transfer
    ... then passing buy/sell instructions to an order placing machine. ... Sockets really aren't that hard to learn either, if you can find a decent book or website with some examples to copy. ... The not-so-subtle gotcha is what to do if the server receives only part of a message -- you can't block on the read because the rest may never show up due to a network outage or client crash -- or if the client can't contact the server. ...
    (comp.lang.c)
  • Re: Emulating I/O Completion Port on Win98.
    ... server, not client? ... If you client behave as a server to other client you do can use IOCP too, ... > 1) How many sockets should be in the list? ...
    (microsoft.public.win32.programmer.networks)