-
January 19th, 2007, 01:43 PM
#31
Re: IP Based SEVERLESS Chat..
Error trapping... See this earlier post
Gremmy...
Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
WPF Articles : 3D Animation 1 , 2 , 3
Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.
-
January 19th, 2007, 04:28 PM
#32
Re: IP Based SEVERLESS Chat..
![Quote](images/misc/quote_icon.png) Originally Posted by WoF
Thank you. Got it.
Ok, now I click Login and get an error in the buffer class
In Add_2_Buffer
ReDim Preserve Buffer(Tmp_Total + Tmp_Add) gives the error.
Tmp_Total is 1, Tmp_Add is -2, redimming on a negative value...
Looks great, Gremmy. I'm eager to try it out. ![Smilie](images/smilies/smile.gif)
Read post 19 and 20 WoF.
The space in the port number is a by product of Str([number]), and is actually the place holder for the sign. It has no effect on the application..
The problem here is the ip filtering, most systems will allow a outgoing port request, and let back in the reply, but will block any incomming requests.. This is one of the problems faced with this application...
This is meant to be serverless, so i dont want to write a seperate Server application. I'm trying to change the face of over the net chat applications. No server = No way to stop the chat..
Take MSN for instance.. put the MSN server offline and milions of ppl cannot chat.. but if you go serverless there is no way to stop the chat...
Think about it... Almost everything we work on runs on some or other server.. Land Line Telephones (An exchange), Cell phones (an exchange), Internet (ISP's).
And now look at travel... if you want to visit a friend that stays a few blocks away, you dont travel to the center of town, stop off at a "Library" and look up his address, then travel back along most of the same road to his house..
I feel that internet chat shoud go the same way... If you know the address, why must you allways pass through a server(the Library) to chat to your mate..
Lets look at our analogy again: what happens if the "Library" is closed for some reason, now you cannot visit your mate, even if he is at home. But in reality you know where he stays because you were there before, so you go to his place directly, chat app's need to go the same way: Well atleast thats the way i feel...
Gremmy...
I totally agree with you, this is why I want this file transfer app as hopefully it will be much fast than MSN. IP filtering is indeed the issue, though you can allow only certain IP address which doesnt make your computer insecure if you know the people who your allowing to connect to your router.
Rich
Visual Studio 2010 Professional | Windows 7 (x64)
Ubuntu
-
January 22nd, 2007, 09:09 AM
#33
Re: IP Based SEVERLESS Chat..
Yeah, thanks. I seem to have missed these posts. Now evwerything is working fine.
I'm testing it within the LAN at the moment.
Good coding, Grem. It will make me understand more about winsock usage.
Note: If you ever have to run it on an older Windows-NT, you'd have to replace the richtx32.ocx by the XP one.
-
February 2nd, 2007, 03:26 AM
#34
Re: IP Based SEVERLESS Chat..
Next Version ...
Okay on this one the Remote subnet Protocols are complete...
Bug fixes :...
Buffer class errors will now be a thing of the past.. (re-write of the buffer class)
File transfer replys (ID4) could be sent to wrong ip - corrected..
Known issue's: ...
If a subnet Search is underway, (or login) and you exit, the app form reloads, still considering what to do here..
If any subnet is behind a Nat or IP translator, the file transfers from outside this subnet will fail.. Going to work on code to do transfers via the chat protocols..
I'm going to write a logger version and set it up on my server.. then open up the relevent ports and post the IP so that we can get some real trials going over the internet...
enjoy it..
Gremmy..
(This app is realy starting to get big, and i may spilt it into multiple DLL modules at a later stage. Just to keep it in a managable size )
--------- EDIT --------
New file on later post (7 downloads)
Last edited by GremlinSA; February 6th, 2007 at 02:42 AM.
Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
WPF Articles : 3D Animation 1 , 2 , 3
Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.
-
February 5th, 2007, 01:02 PM
#35
Re: IP Based SEVERLESS Chat..
Thanks. I do enjoy this one.
What do you mean by manageable? My big app I done has 25 Forms, 16 modules and 2 user controls. I didn't count the lines of code, but it's plenty. Still I find it manageable.
-
February 5th, 2007, 04:33 PM
#36
Re: IP Based SEVERLESS Chat..
![Quote](images/misc/quote_icon.png) Originally Posted by WoF
Thanks. I do enjoy this one.
What do you mean by manageable? My big app I done has 25 Forms, 16 modules and 2 user controls. I didn't count the lines of code, but it's plenty. Still I find it manageable. ![Wink](images/smilies/wink.gif)
Hmm try leaving it for 6 months, then come back and try to mod something small...
it takes forever to find it..
Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
WPF Articles : 3D Animation 1 , 2 , 3
Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.
-
February 6th, 2007, 02:41 AM
#37
Re: IP Based SEVERLESS Chat..
Ahhhh got this one working even better... And it has full network logging (for diagnostics)
Also found a wierd bug in the File transfers that i got sorted out thanks to CG members..
Well for those interested i've setup my network to accept Remote connections on the ip "*************" on port 1699 (i will keep the server running 24/7)
This is more for the testing of remote connections... I would appreciate any feed back on this..
Cheers guys...
---- EDIT ----
Last file on later post - (35 downloads)
Server ip removed because unable to accept connetions with my current hardware..
Last edited by GremlinSA; April 5th, 2007 at 05:14 AM.
Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
WPF Articles : 3D Animation 1 , 2 , 3
Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.
-
February 6th, 2007, 11:17 AM
#38
Re: IP Based SEVERLESS Chat..
Got a coupla questions:
I run one instance on my second computer (Win NT) then I start the prog in IDE on my main computer. I get an overflow in
Code:
Public Function IP_2_Long(IP As IP_Type) As Long
IP_2_Long = IP.IP(3) Or (IP.IP(2) * &H100) Or (IP.IP(1) * &H10000) Or (IP.IP(0) * &H1000000)
End Function
the IP address is 192.168.55.23
I put an On Error Resume Next in to see if everything else works. Seems to. But I cannot see the other computer in the Users Online window.
And what am I to do to connect to your running server? (or should that happen automatically somehow?)
-
February 6th, 2007, 02:28 PM
#39
Re: IP Based SEVERLESS Chat..
Thank you Wof .. you just found a problem in the code...
ARRRGGGGG the IDE sucks... any ip that is higher than 127.#.#.# causes a fault in the ide as it returns a value higher than 2gig....
Looks like i'm going to have to do some fancy round-about coding to get the IP addy into a Long Var....
To login onto my server you need to click Subnet and enter the IP in there...
I tried from a friends system with no luck.. so i will be looking into what and why ..
but first the IP to Long needs to be sorted out....
Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
WPF Articles : 3D Animation 1 , 2 , 3
Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.
-
February 7th, 2007, 01:05 PM
#40
Re: IP Based SEVERLESS Chat..
Fine. Looking forward to it.
-
April 5th, 2007, 05:11 AM
#41
Re: IP Based SEVERLESS Chat..
Well this will be the last update for this application...
I'm developing it further in VB.NET, and can be found On this Vb.Net thread
The Ip functions have been fixed to enable Ip's higher than 127.#.#.# and a few other little minors have been fixedup..
Hope you guy's are not too dissapointed..
Ahh and BTW my DSL rougter does not allow me to map incomming packets to the server, so no one can connect to me directly ![Frown](images/smilies/frown.gif)
Maybe someone else will take up the challenge to develop further, (please keep us posted if you do)..
Gremmy...
---- Edit ---
New File on later post...(65 Downloads)
Last edited by GremlinSA; August 23rd, 2007 at 01:29 PM.
Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
WPF Articles : 3D Animation 1 , 2 , 3
Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.
-
April 5th, 2007, 11:37 AM
#42
Re: IP Based SEVERLESS Chat..
Shame. Everybody seems to desert to .NET
Hope I find time to examine this one over easter, Gremmy. I liked the program much.
-
August 23rd, 2007, 01:28 PM
#43
Re: IP Based SEVERLESS Chat..
Okay so i didn't Stop playing around with this proggy.. (acctually I think i played more on the VB6 than the Vb.net Code)..
SO Whats new...
Well lets just say .... SMILIES....
So far there are 10 smilies included (more to come soon) ..
Let me know what you think..
Gremmy..
---- EDIT ---
Correction on later post... (3 D/L)
Last edited by GremlinSA; August 27th, 2007 at 01:56 PM.
Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
WPF Articles : 3D Animation 1 , 2 , 3
Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.
-
August 27th, 2007, 07:06 AM
#44
Re: IP Based SEVERLESS Chat..
Hello Gremmy, I would like to think more of it, cause I like the program.
Only it does show the same error as I already described before.
I start the program in the IDE, then I start a compiled instance from another PC and get an overflow in this function:
Code:
Public Function IP_2_Long(IP As IP_Type) As Long
IP_2_Long = IP.IP(3) Or (IP.IP(2) * &H100) Or (IP.IP(1) * &H10000) Or (IP.IP(0) * &H1000000)
End Function
Btw.: how do you create the smilies???
-
August 27th, 2007, 01:54 PM
#45
Re: IP Based SEVERLESS Chat..
Hmm ... I thought i fixed that error last time ....
Ahhh, found it, it's fixed but the updated Bas file was never added to the zip.. Well let me just re-update ALL the files in the Zip...
the code should be
Code:
Public Function IP_2_Long(IP As IP_Type) As Long
If IP.IP(0) < 128 Then
IP_2_Long = IP.IP(3) Or (IP.IP(2) * CLng(&H100)) Or (IP.IP(1) * &H10000) Or (IP.IP(0) * &H1000000)
Else
IP_2_Long = IP.IP(3) Or (IP.IP(2) * CLng(&H100)) Or (IP.IP(1) * &H10000) Or ((IP.IP(0) And &H7F) * &H1000000)
IP_2_Long = IP_2_Long - 2147483647 - 1
End If
End Function
..
And the Smilies.. Well it was so simple i nearly fell off my chair when i figured it out ...
Simple breakdown ...
* Open Word, and add a Gif/BMP/Jpg to the doc.
* Save as a RTF file..
* Open the RTF in Notepad..
* You now have the image coded in RTF format..
Code:
Smilie = "{\nonshppict{\pict\picscalex100\picscaley100\piccropl0\piccropr0\piccropt0\piccropb0\picw423\pich423\picwgoal240\pichgoal240\wmetafile8\bliptag1128540368{\*\blipuid }0100090000030c0300000000a202000000000400000003010800050000000b0200000000050000000c02100010000500000007010400000046000000430f8600ee00000010001000000000001000100000000000280000001000000010000000010001000000000040000000c40e0000c40e0000020000000200000000000000ffffff0007e000001ff800003ffc00007ffe09007ffe0c00ffff0c00ffff0b00ffff0f00ffff1300ffff1300ffff14007ffe16007ffe17003ffc1f001ff82f0007e02700a2020000430fc6008800000010001000000000001000100000000000280000001000000010000000010008000000000040010000c40e0000c40e0000"
'...... etc
Check out Declarations.bas where i've put all the RTF smilies..
Gremmy......
--- Edit ---- Newer file on later post.
Last edited by GremlinSA; August 29th, 2007 at 04:55 PM.
Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
WPF Articles : 3D Animation 1 , 2 , 3
Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|