Author Topic: New IM idea  (Read 7901 times)

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
New IM idea
« on: May 11, 2012, 08:21:59 PM »
Hey, Numsgil I am looking into developing a new DarwinbotsIM.exe that is IP based and does not require php or any kind of ftp space. If I stress test it and it works can you host it?
« Last Edit: May 11, 2012, 08:23:45 PM by Botsareus »

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
Re: New IM idea
« Reply #1 on: May 12, 2012, 12:04:21 PM »
Here is a flow diagram, it will be using vb.net and Imports System.Net.Sockets


I would also like to know what is wrong with the php based IM, and if Shasta is cool with me trying this out.
« Last Edit: May 12, 2012, 03:12:37 PM by Botsareus »

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Re: New IM idea
« Reply #2 on: May 12, 2012, 04:25:17 PM »
Yeah, I'll host it if you can get it working.  But I'd definitely coordinate with Shasta before you really dig in to it, to avoid duplicating work.

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
Re: New IM idea
« Reply #3 on: May 12, 2012, 07:28:30 PM »
what do you mean by "duplicating work" ?

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Re: New IM idea
« Reply #4 on: May 12, 2012, 11:40:19 PM »
I just mean that Shasta has worked on this some.  No reason not to take advantage of what he's done if it's in a reasonable state.

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
Re: New IM idea
« Reply #5 on: May 13, 2012, 06:22:26 PM »
It is very "object distributed", but i'll see what I can do.

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
Re: New IM idea
« Reply #6 on: May 14, 2012, 03:47:24 PM »
What is the file size limit for dbo files?
Looks like I have to split up a file into parts or use ftp. I really want to stay away from ftp, but in-case we have no other choice is it possible to host frp?

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Re: New IM idea
« Reply #7 on: May 14, 2012, 04:32:53 PM »
The problem with FTP is that it doesn't scale well.

I think it's reasonable to say that dbos that are too large won't be transferred.

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
Re: New IM idea
« Reply #8 on: May 14, 2012, 04:56:26 PM »
I am maxing out in theory at 825kb after compression.

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Re: New IM idea
« Reply #9 on: May 14, 2012, 07:01:26 PM »
That should be plenty.  They're usually no more than a few KB uncompressed.

Offline Shasta

  • Administrator
  • Bot Destroyer
  • *****
  • Posts: 231
    • View Profile
Re: New IM idea
« Reply #10 on: May 15, 2012, 11:40:14 PM »
Hey sorry I didn't reply sooner, I've been pretty busy this quarter.

I've actually got 90% of a working solution using a socket server for IM sitting around somewhere. I keep ending up with time to program stuff when I'm on machines that I don't have the actual code base :wacko:

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
Re: New IM idea
« Reply #11 on: May 16, 2012, 03:44:42 PM »
Expending more on the scalability issue, I was thinking of making a socket based P2P system, I'll have a new flow chart by Friday...

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
Re: New IM idea
« Reply #12 on: May 16, 2012, 04:18:10 PM »
K, got it done today.

This is a decentralized version of what I proposed before, outbound client runs every 500 milliseconds:

One of the obstacles I am having is: How to tell if "client is busy"? (Or, from the old chart, "Server is Choking")

(Shasta, I hope this is what you had in mind)
« Last Edit: May 16, 2012, 04:26:48 PM by Botsareus »

Offline ikke

  • Bot Destroyer
  • ***
  • Posts: 300
    • View Profile
Re: New IM idea
« Reply #13 on: May 17, 2012, 03:42:45 AM »
There is enough P2P code out there to show the way. Or to use perhaps.

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
Re: New IM idea
« Reply #14 on: May 18, 2012, 02:57:17 PM »
I know, I am looking at what Shasta has done first...

This is a little different from ordinary P2P code. Let me explain:

1.) The inbound client does NOT know the size of the file being transferred to it.
2.) The inbound client can be busy with a current transfer, but, it must automatically except any transfers

 I am confident it can be done after doing some research. Still, the R&D is a little heavy and I tend to procrastinate when I have too much R&D.  :wacko: Here is the extent of my system.net.sockets experience if any one has vb2k10 and wants to take a look. If you just have .net framework 4.0 you can take a look too. Had down to the bin/debug/ folders and run server and client exe files. The only update I did to the server side for a school project was remove a client from server when server receives an 'exit' command:
« Last Edit: May 19, 2012, 12:16:43 PM by Botsareus »