Re: Simple Sockets?

2001-01-01 Thread LiangTyan Fui

On 1/2/01 1:44 AM, Peter Reid wrote:

 Hi
 
 I'm just starting to experiment with very simple sockets for message
 between two computers on the same TCP/IP LAN.  I'm taking the scripts
 posted by Kevin on 6 Nov and Mark on 1 Jan as my starting point.
 
 I'm hoping to use the same stack on both computers, each acting as
 both a host and a client.  Here are some simple/stupid questions:
 
 1) is there a reverse of the "accept" command, i.e. the facility to
 stop the host from accepting connections?

Close the port that you have "accept" on.
eg:
 accept connections on port "8080" with message "sockOpen"
 close socket "8080"

 2) is there any way of finding out the IP address of the current
 computer a stack is running on without making a socket connection to
 another machine?

Not that I know.

Regards,
LiangTyan Fui


 Thanks to both Kevin and Mark for helping me to get started in this area!
 
 Thanks for any help.
 Peter


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




Re: Simple Sockets?

2001-01-01 Thread michael kann

Peter Reid asked --

is there any way of finding out the IP address of the
current computer a stack is running on without making
a socket connection to another machine?

-- on Windows98 I've had success with the following:

on mouseUp
  put empty into fld "ipconfigfld"
  set hideConsoleWindows to true
  put shell("ipconfig") into vtemp
  filter vtemp with "*IP*"
  put last word of vtemp into fld "ipconfigfld"
end mouseUp

__
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/

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