Recent

Author Topic: Sockets!  (Read 9411 times)

Peter

  • Newbie
  • Posts: 2
    • http://www.corrosivetruths.org
Sockets!
« on: November 23, 2003, 12:21:08 pm »
Some form of non-complex socket handling with non-blocking, something similar to FPiettes Internet Component Suite would be perfect.  Is there something like this being worked on?

(I had a look, but couldn't find anything that looked like it did the same sort of thing, I figured this would apply to the other forum in this section too, but more this one, sorry if its the wrong place)
"Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect" - Linus Torvalds

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2649
Sockets!
« Reply #1 on: November 26, 2003, 04:03:33 pm »
In the 1.0 series of the compiler there was no thread support and little or no socket support. So making componets didn't make sense at that stage. The support of both in the newer ccompiler versions look promising (I haven't test it yet)
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

Anonymous

  • Guest
Sockets!
« Reply #2 on: November 26, 2003, 05:05:37 pm »
I've been trying to do some stuff with NetDemo, but really need the events for when I receive text from the client.  Although I haven't exhausted every trick yet, I get the feeling it wouldn't be as efficient in the long run.  It is already non-blocking which is more important to me than thread support as you can quite easily make a server-type app that serves many clients and still be single threaded, as long as you have event handling for when a client connects and sends, then you have an index of clients to distinguish them.

The curious thing about NetDemo is that it only relies on rtl and Linux units, not using the sockets unit what-so-ever.  The problem I have is I just can't get my head around how to use it in my program quite yet

NetDemo can be seen at http://skelet.hit.bg/srdb/NetDemo.htm and it does look great and work, I just haven't been able to make it do cool stuff in Lazarus yet.

I hope a component does happen some point, it would be pretty cool.  If I had the time to spare and I was a little better at making components, I swear, I'd hve a damn good go at it, heh.

Peter

  • Newbie
  • Posts: 2
    • http://www.corrosivetruths.org
Sockets!
« Reply #3 on: November 26, 2003, 05:07:34 pm »
I could have sworn I logged in ... whoops.
"Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect" - Linus Torvalds

 

TinyPortal © 2005-2018