>
>I did look it up, and like it, i tried to get first a read from the server. 
>
>But then why do i get an error and what does that error mean? 
>
>Should I look it up in the technet or is this a MetaCard error code?
>
>I've tried many times before with the write and neither got an answer... 
>I know for sure it works cause a friend made it work... 
>He wont give me his code so im trying... 

In what way it works, I still don't understand what you expect to read from a server as
soon as you open a connection to it? Some servers (mail) acknowledge a new
connection , others need some input.

>
>> >
>> >Andu,
>> >
>> >I tried and failed again...
>> >
>> >on mouseUp
>> >  put "" into fld "socketresult"
>> >  put fld "url" &":"&fld "port" into theurl
>> >  open socket theurl with message "readmore"
>> >end mouseUp
>> >
>> >on readmore socketOpen
>> >  put "reading socket" && socketOpen
>> >  read from socket socketOpen for 1024 with message "dataHasArrived"
>> >end readmore
>> 
>> What do you xpect to read from the socket? Try writing a request 
>> or something and *then
>> read the reply. Someone posted a script here the other day for 
>> ftp uploads I think, look it
>> up in the archives to see an example of comunication with ftp server.
>> 
>> >
>> >on dataHasArrived socketOpen, tData
>> >  beep
>> >  put "data has arrived"
>> >  put tData into fld "data"
>> >  Close socket socketopen
>> >end dataHasArrived
>> >
>> >all i get is 
>> >SocketError:212.166.2.96:21 Error 10057 reading socket
>> >I tried port 21 FTP, 80 (HTTP)
>> >and 27961, 27963 (Quake 3 servers)
>> >
>> >and I get only errors 10057
>> >Im sure im missing something... can someone help?
>> >
>> >TIA
>> >Cheers,
>> >Xavier
>> >
>> >> -----Original Message-----
>> >> From: [EMAIL PROTECTED]
>> >> [mailto:[EMAIL PROTECTED]]On Behalf Of andu
>> >> Sent: Tuesday, December 12, 2000 5:20 PM
>> >> To: [EMAIL PROTECTED]
>> >> Subject: Re: FromSocketToField
>> >> 
>> >> 
>> >> >
>> >> >I have the following script in a btn:
>> >> >---
>> >> >read from socket "127.0.0.1:9980" for 1024 with
>> >> >message "dataHasArrived"
>> >> 
>> >> on dataHasArrived socketOpen, tData
>> >> put tData into fld 1
>> >> end dataHasArrived
>> >> 
>> >> Also you can just do: 
>> >> read from socket "127.0.0.1:9980" for 1024
>> >> put it into fld 1
>> >> 
>> >> Remember to open the socket before reading from it and to close 
>> >> it when you are done
>> >> reading.
>> >> 
>> >> >----
>> >> >I click on the btn, then send some data from another
>> >> >stack to the recieving stack. How do I make the data
>> >> >appear in a fld in the receiving stack?
>> >> >----
>> >> >>From the reference:
>> >> >----
>> >> >The "read from socket" command is used to read data
>> >> >from a socket. Sockets are always opened in binary
>> >> >mode and so any required data conversion must be done
>> >> >in scripts.  
>> >> >----
>> >> >Could anyone kindly supply one of the "scripts" that
>> >> >the reference mentions?
>> >> >----
>> >> >Thank you, Michael Kann, [EMAIL PROTECTED]
>> >> >----
>> >> >
>> >> >
>> >> >__________________________________________________
>> >> >Do You Yahoo!?
>> >> >Yahoo! Shopping - Thousands of Stores. Millions of Products.
>> >> >http://shopping.yahoo.com/
>> >> >
>> >> >Archives: http://www.mail-archive.com/[email protected]/
>> >> >Info: http://www.xworlds.com/metacard/mailinglist.htm
>> >> >Please send bug reports to <[EMAIL PROTECTED]>, not this list.
>> >> >
>> >> >.
>> >> 
>> >> 
>> >> Regards, Andu 
>> >> _______________________
>> >> [EMAIL PROTECTED]
>> >> 
>> >> Archives: http://www.mail-archive.com/[email protected]/
>> >> Info: http://www.xworlds.com/metacard/mailinglist.htm
>> >> Please send bug reports to <[EMAIL PROTECTED]>, not this list.
>> >> 
>> >
>> >Archives: http://www.mail-archive.com/[email protected]/
>> >Info: http://www.xworlds.com/metacard/mailinglist.htm
>> >Please send bug reports to <[EMAIL PROTECTED]>, not this list.
>> >
>> >.
>> 
>> 
>> Regards, Andu 
>> _______________________
>> [EMAIL PROTECTED]
>> 
>> Archives: http://www.mail-archive.com/[email protected]/
>> Info: http://www.xworlds.com/metacard/mailinglist.htm
>> Please send bug reports to <[EMAIL PROTECTED]>, not this list.
>> 
>
>Archives: http://www.mail-archive.com/[email protected]/
>Info: http://www.xworlds.com/metacard/mailinglist.htm
>Please send bug reports to <[EMAIL PROTECTED]>, not this list.
>
>.


Regards, Andu 
_______________________
[EMAIL PROTECTED]

Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to