SRL Archive - OSR Help

Question about ReadConnectionData()


swisspking

2010-03-23 14:43:45

Could anyone give me the code of the function ReadConnectionData() or tell me where I could find it?

Thanks
~Swiss

Nava2

2010-03-23 21:08:51

Nope, its closed source. Sorry bro.

swisspking

2010-03-24 08:02:29

Thing is, I need that function, but it doesn't work for me how I expect it to do. So I thought of changing the function for me to let it work. I'd write my own function if I knew the stuff.

Well, seems like I need to try something else, thanks for the answer tho :)

~~Swiss

i luffs yeww

2010-03-24 08:23:05

:p It's in SCAR, which is closed. You could ask Freddy, but chances are that he won't be open to sharing it.

swisspking

2010-03-24 08:36:57

Well, I try to explain what I mean now, maybe someone is able to help me.

It seems like Readconnectiondata() is waiting for an answer, if you start the function. What if it should continue with the rest of the script if it hasn't received anything yet? Or how would I create a function doing exactly what I stated before?

Still hoping for help :)
~Swiss

Awkwardsaw

2010-03-24 09:26:43

s := readconnectiondata();
if s = '' then
dostuff;

maby, i dunno tbh :)

Frement

2010-03-24 09:27:22

Isnt multithreading possible in scar now?

From: Awkwardsaw
s := readconnectiondata();
if s = '' then
dostuff;

ect maby, i dunno tbh :)


I think he wants to continue the script while still waiting for the data.

swisspking

2010-03-24 09:34:54

From: Awkwardsaw
s := readconnectiondata();
if s = '' then
dostuff;

maby, i dunno tbh :)


Doesn't work, that's what I already tried :S

@frement, I'll read a tutorial and test it, will respond wether it works or not.

Thanks for your help! :)
~swiss

Quickmarch

2010-03-24 09:41:39

Use indy (http://www.indyproject.org/index.en.aspx) components for this kind of stuff.

Frement

2010-03-24 09:43:23

http://villavu.com/forum/showthread.php?t=22455&highlight=multi-threading

That post has some good information i think.

swisspking

2010-03-24 10:13:53

I think it's almost working! Although my scar seems to crash everytime I try it :P

~Swiss

[EDIT] I always get the error "The application seems to be frozen". Meh, any help? :)