Re: Mac to Windows

2001-01-01 Thread Sjoerd Op 't Land

Geoff Canyon wrote/ schreef:
 I suppose you could use a file typing utility (some have been written
 in MetaCard) to change the type of mc.exe to APPL, but that might add
 a resource fork and cause a problem. I don't know.
It won't add a resource fork.

A better solution may be editing the script of the browse button, and remove
the filter.
 Regards,
 
 Geoff
Regards,
Sjoerd


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: getting socket identification numbers

2001-01-01 Thread andu


This is a multi-part message in MIME format.

--=_NextPart_000_0034_01C0740A.EED97EA0
Content-Type: text/plain;
   charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I do not have a permanent domain id. I can get a temporary one and set =
up my mc server from my home pc, but the id #s change every time I log =
on.  Is there a simple way for MC to initiate and identify these numbers =
for use in chat stacks etc.?

Thanks

Peter

I would be greatful if you sent your mail as plain text.

After you do: open socket X, do: put hostAddress(X) into myAddress ##your current IP
address.

Regards, Andu 
___
[EMAIL PROTECTED]

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 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.




Re: Mac to Windows

2001-01-01 Thread Geoff Canyon

At 10:50 PM +0100 1/1/01, Sjoerd Op 't Land wrote:
Geoff Canyon wrote/ schreef:
  I suppose you could use a file typing utility (some have been written
  in MetaCard) to change the type of mc.exe to APPL, but that might add
  a resource fork and cause a problem. I don't know.
It won't add a resource fork.

A better solution may be editing the script of the browse button, and remove
the filter.

Agreed, if you're willing to edit the standalone builder. I did, but 
for a different reason. But I hadn't bothered to remove the APPL 
restriction. Regarding not adding a resource fork, I didn't think it 
would, but without testing it, I wouldn't say it.

Regards,

Geoff

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: getting socket identification numbers

2001-01-01 Thread Geoff Canyon

At 3:53 PM -0500 1/1/01, Sound Medicine, Inc. wrote:
I do not have a permanent domain id. I can get a temporary one and 
set up my mc server from my home pc, but the id #s change every time 
I log on.  Is there a simple way for MC to initiate and identify 
these numbers for use in chat stacks etc.?

If you are going one-on-one, then you can just have the stack show 
your id, and use a different method (email, etc) to communicate that 
to the target.

If you are looking for a more universal/large scale/robust/automatic 
system, then I would think you'd need to set up a server at a fixed 
address (in other words, not at your location) and set up the chat 
clients to automatically log in to the server, and find each other 
through that.

Regards,

Geoff

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: getting socket identification numbers

2001-01-01 Thread michael kann

I'm working on a chat program, bolstered by the help
of others on the list. I want to get the IP address of
the person chatting with me, even if they don't know
how to get it themselves. I investigated hostAddress
and peerAddress but ran into a puzzle -- can anyone
explain it?

I'm chatting on my Win98 machine between two stacks
with different addresses, 208.193.15.192 given to me
by the ISP, and 127.0.0.1, the loopback address. In
each stack I have a button with this script:

on mouseUp
  put fld "sendIPfld" into vIP
  put fld "sendSocketFld" into vSocket
  put vIP":"vSocket into tDest
  open socket tDest
  put hostAddress(tDest)returnpeerAddress(tDest)
into fld resultFld
  close socket tDest
end mouseUp

From each stack I get the same result -- the
hostAddress and the peerAddress are the same, and that
address is for the stack that I am connecting to, not
the address for the stack with the button. Shouldn't
they be different?

I'm using two different port numbers -- one to go from
the 208.193.15.192 address to the 127.0.0.1 address,
and one to go back the other way. But I don't see how
that could make any difference. 

Any help would be much appreciated. Michael Kann, 

[EMAIL PROTECTED]



__
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.