|
Post by Adam on Oct 12, 2009 23:29:37 GMT -5
I have been writing a messenger for a few days now and it is nice and pretty (well not in terms of gui) and i have even added file transfering to it. but that is actually what i needed help with. when running under ubuntu i run it and you can see the file transfer pinging off the server (i am sending packets of a byte at a time and converting it to with chr$ for transfer) but the client sending the file gets disconnected from the server shortly after the transfer starts. And when i try to attempt the same thing in Windows XP, its like the server isn't even receiving the packets to bounce them back at the clients... when running the file transfer command under XP it slows down for a couple seconds but seemingly appears to do nothing and just sit there..
|
|
|
Post by matthew on Oct 13, 2009 2:09:21 GMT -5
I've got Two links to messenger programs which Tom wrote, they might provide you with some answers as to what's going wrong. The first link is here & the second here.
|
|
|
Post by Adam on Oct 13, 2009 20:07:41 GMT -5
Thanks, but what those links help with i had already had done.. I had figured out that my problem was i was overloading the port by spamming it with 1 byte packets.. i changed it so now it sends 64 bytes at a time and it works... well the transfer does anyway.. the file at the other end of the network... not so much... so i am gonna be working on that for a while now i guess.. basic4gl.wikispaces.com/file/view/Messenger.zip/94986276Thats what i have so far, to see the commands you have to type /help and it does have to be connected to the server. And since i didn't include the server yet, i guess you will just have to try and run it and see if it connects lol.. to connect to the default server all you need to know is your desired user name .. and also, if you are too lazy to look at /help you have to use /exit to quit OH! also, I have a function in there that does basic sentence modifying based on who is viewing it, like if you use an emotion it tries to change your name in it to "you" but it tends to be quiet retarded sometimes... and i hope to further progress that to actually make it look good after it modifies a sentence
|
|
|
Post by Adam on Oct 16, 2009 20:18:49 GMT -5
Fun times, shortly after my last post my router died... then i had to go buy another one and after 4 hours of manually configuring it because the installation disk kept coming up with an error (simply installing it never works... guess they think it would be too easy for you) but anyway, i got it working and now have a new IP address so the wonderful program i posted wouldn't connect even if the server was running.. fun stuff..
Any way, I have updated it too and added a nice little feature, you can now write code and send it like a message and it will execute it, and if you want to write something that needs to go in the loop you make use of the three new commands that have yet to be documented in /help.
/code opens a file for writting, just simply that.. after you use that then you can go on to use /add where code is a line of code that you want in the loop, if it doesn't compile due to an error in syntax it will tell you "error" then you can press up (retrieves last sent message) and edit it (don't worry about erasing and rewriting from the point you messed up the left and right arrow keys also work as well as delete) if it compiles right it won't say anything.. then when you are done use /close which will close the file (of course) and the code you entered with /add will now be in your loop
the part that i think is really cool about this is anything you code runs on not just your client, but on everyone's network wide (pure gl can't be coded at the moment, but with a few simple tweaks that will be easily possible)
[a href="http://basic4gl.wikispaces.com/file/view/Messenger.zip/95764606"]http://basic4gl.wikispaces.com/file/view/Messenger.zip/95764606[/a]
Also, if you didn't already guess my IP has been updated in the program, and this time i included the server as well... but remember, if you aren't connecting to my computer you DO have to type in the ip address
|
|