Error trapping... See this earlier post
Gremmy...
Printable View
Error trapping... See this earlier post
Gremmy...
Read post 19 and 20 WoF.Quote:
Originally Posted by WoF
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.Quote:
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...
Yeah, thanks. I seem to have missed these posts. :rolleyes: 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.
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)
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. ;)
Hmm try leaving it for 6 months, then come back and try to mod something small...Quote:
Originally Posted by WoF
it takes forever to find it..
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..
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
the IP address is 192.168.55.23Code: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
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?)
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....
Fine. :) Looking forward to it.
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 :(
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)
Shame. Everybody seems to desert to .NET
Hope I find time to examine this one over easter, Gremmy. I liked the program much.
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) ..
http://i141.photobucket.com/albums/r...ns/Smilies.jpg
Let me know what you think..
Gremmy..
---- EDIT ---
Correction on later post... (3 D/L)
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:
Btw.: how do you create the smilies???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
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..
Check out Declarations.bas where i've put all the RTF smilies..Code:Smilie = "{\nonshppict{\pict\picscalex100\picscaley100\piccropl0\piccropr0\piccropt0\piccropb0\picw423\pich423\picwgoal240\pichgoal240\wmetafile8\bliptag1128540368{\*\blipuid }0100090000030c0300000000a202000000000400000003010800050000000b0200000000050000000c02100010000500000007010400000046000000430f8600ee00000010001000000000001000100000000000280000001000000010000000010001000000000040000000c40e0000c40e0000020000000200000000000000ffffff0007e000001ff800003ffc00007ffe09007ffe0c00ffff0c00ffff0b00ffff0f00ffff1300ffff1300ffff14007ffe16007ffe17003ffc1f001ff82f0007e02700a2020000430fc6008800000010001000000000001000100000000000280000001000000010000000010008000000000040010000c40e0000c40e0000"
'...... etc
Gremmy......
--- Edit ---- Newer file on later post.