[Oz] Sockets

Christian Schulte schulte at ps.uni-sb.de
Mon Apr 19 11:05:32 CEST 1999


Juergen Lind wrote:
> 
> Hi,
> 
> I'm trying to figure out how to assign a fixed port number to a socket
> instead of using the automatically generated port numbers. Is there
> a possibility to do this?

Yes, that is easy. Use the bind method of Open.socket for it as follows:

	{S bind(takePort:P)}

where P is your favourite port number. See also

	http://www.mozart-oz.org/documentation/system/node47.html#chapter.open

Best regards
--Christian

---------------------------------------------------------------
Christian Schulte, http://www.ps.uni-sb.de/~schulte/
-
Please send submissions to users at mozart-oz.org
and administriva mail to users-request at mozart-oz.org.
The Mozart Oz web site is at http://www.mozart-oz.org/.





More information about the mozart-users mailing list