KiXforms Forum Index KiXforms
The Forum for the KiXforms Community
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Quick Links 
Site News
Downloads
Documentation
Donations
Script Archive
Tracking Systems

Kixforms Sockets : Discussion II
Goto page Previous  1, 2, 3, 4
 
Post new topic   Reply to topic    KiXforms Forum Index -> Discussion
View previous topic :: View next topic  
Author Message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Sat Aug 07, 2004 7:18 pm    Post subject: Reply with quote

anybody aware of any internet "services" like simple echo servers or other funky things that we could code a client for, and test it against real outside servers ?

-Shawn
Back to top
View user's profile Send private message
Bonji
KiXforms Aficionado
KiXforms Aficionado


Joined: 10 Mar 2003
Posts: 393
Location: Virginia

PostPosted: Sat Aug 07, 2004 7:57 pm    Post subject: Reply with quote

I'm looking...have found some things that send data after the initial connection, but I'm looking for something that we can continue to send and receive with.
_________________
-Ben
Back to top
View user's profile Send private message
Bonji
KiXforms Aficionado
KiXforms Aficionado


Joined: 10 Mar 2003
Posts: 393
Location: Virginia

PostPosted: Sat Aug 07, 2004 8:46 pm    Post subject: Reply with quote

I can't find an echo server publicly available. I found some telnet servers, however I always get garbage returned instead of understandable text. I've been trying to connect to my local telnet server (standard with WinXP) and I get garbage returned here, too. The regular telnet client works fine with all of these servers so I'm guessing there is some kind of translation going on. I'm trying to figure out what that is at this point.
_________________
-Ben
Back to top
View user's profile Send private message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Sat Aug 07, 2004 9:35 pm    Post subject: Reply with quote

ja, i figure its the telnet protocol - too bad kixtart didn't support binary data and structures and we could interpret this stuff easily and actually talk to telnet - wonder if one could maybe chop the data up and actually make sense of it with Kixtart - dont know. Went looking for the Telnet RFC the other night - found lots of docs that where WAY too much reading for me :0)

-Shawn
Back to top
View user's profile Send private message
Bonji
KiXforms Aficionado
KiXforms Aficionado


Joined: 10 Mar 2003
Posts: 393
Location: Virginia

PostPosted: Sat Aug 07, 2004 11:18 pm    Post subject: Reply with quote

I'm grasping at straws here...

I'm hoping the communication going on with telnet is binary so that this process has a chance of working. Lonkero wrote a .dll that would read and write binary files for kixtart. I can get a connection made to a telnet server, grab the data (assuming the data is OK at this point), write it to a file, use Lonk's .dll to read it thereby pulling in the data as ints (I believe) into an array. Now I just need to convert the values in the array into an ascii equivalent. I know this has a lot of IO, but if I'm not missing the mark here, than it gives us the ability to pursue a solution.

Make sense?

[EDIT] If this works, then maybe this .dll could be modified to add a method that would convert a variable into an array of values without having to do it via a file operation. May not be doable, but I can dream can't I?

[EDIT2] I've been thinking about this some more, and I realized if all this above worked, we wouldn't necessarily be able to send binary info back. I'm still researching... RFC854 seems to be the big one for telnet.

_________________
-Ben
Back to top
View user's profile Send private message
Bonji
KiXforms Aficionado
KiXforms Aficionado


Joined: 10 Mar 2003
Posts: 393
Location: Virginia

PostPosted: Sun Aug 08, 2004 1:33 am    Post subject: Reply with quote

It looks like the main problem is that we are working with telnet servers that are using binary. I downloaded one that isn't, and I'm able to logon and use it. However, there is still some garbage characters that I'm not sure about so I need to figure out what that is.
_________________
-Ben
Back to top
View user's profile Send private message
Lonkero
KiXforms Devotee
KiXforms Devotee


Joined: 13 Mar 2003
Posts: 1022
Location: Espoo, Finland

PostPosted: Sun Aug 08, 2004 1:47 pm    Post subject: Reply with quote

telnet is pure ascii-stuff.
try connecting to irc.stealth.net:6667
if you get garbage, there is something wrong in your tool.

_________________
Hammer
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Lonkero
KiXforms Devotee
KiXforms Devotee


Joined: 13 Mar 2003
Posts: 1022
Location: Espoo, Finland

PostPosted: Sun Aug 08, 2004 2:03 pm    Post subject: Reply with quote

not sure about ascii is the correct name, it's 8 bit after all.
anyways, to test the dll (just like I test any dll with network ability) I connect to our SMTP server and mail myself.

_________________
Hammer
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Sun Aug 08, 2004 7:25 pm    Post subject: Reply with quote

so jooel, did you work-out any strategy for dealing with binary data/blobs in kixtart ? Got any ideas ?
Back to top
View user's profile Send private message
Lonkero
KiXforms Devotee
KiXforms Devotee


Joined: 13 Mar 2003
Posts: 1022
Location: Espoo, Finland

PostPosted: Sun Aug 08, 2004 7:49 pm    Post subject: Reply with quote

well, we do use ado with our ftpGet...
http://www.kixtart.org/ubbthreads/showflat.php?Cat=&Number=83003&page=25&view=collapsed&sb=3&o=all&fpart=1

_________________
Hammer
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Lonkero
KiXforms Devotee
KiXforms Devotee


Joined: 13 Mar 2003
Posts: 1022
Location: Espoo, Finland

PostPosted: Sun Aug 08, 2004 7:54 pm    Post subject: Reply with quote

the problem is though... do we really wanna play with binary data?
it gets harder when kix don't support it.
we would need to build support for it in KF to be able to use it smoothly

_________________
Hammer
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Sun Aug 08, 2004 7:58 pm    Post subject: Reply with quote

been playing with building a small time client, can fetch time at places like:

www.boulder.nist.gov:13

theres also a port 37 version (at other sites) that returns one of those 32bit binary values that would need some conversion ... have also been playing with connecting to www.kixtart.org:80 and trying to TCP-CHAT with little success.
Back to top
View user's profile Send private message
Lonkero
KiXforms Devotee
KiXforms Devotee


Joined: 13 Mar 2003
Posts: 1022
Location: Espoo, Finland

PostPosted: Sun Aug 08, 2004 8:16 pm    Post subject: Reply with quote

shawn, what does onConnect stand for?
it takes about 1s to occur on every machine that is reachable even though they have no port open...

for ip that isn't existent, it takes a little longer.
what is that?
is there no way to check when connection is established?

_________________
Hammer
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Sun Aug 08, 2004 8:48 pm    Post subject: Reply with quote

ja, when the OnConnect triggers it means either the socket got connected, or that something bad happened - use $System.Error and/or $System.SError to determine the result.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    KiXforms Forum Index -> Discussion All times are GMT
Goto page Previous  1, 2, 3, 4
Page 4 of 4

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group