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.