Author:manus

Date:2014-07-15T22:02:46.000000Z


git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@1388 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
This commit is contained in:
conaclos
2014-07-22 11:54:33 +00:00
parent 564056ce82
commit 8327b2647b
2 changed files with 13 additions and 3 deletions

View File

@@ -56,6 +56,16 @@ sudo port selfupdate
sudo port upgrade outdated
</pre>
==Installing EiffelStudio from a compressed package==
This section only applies if you have installed all the required prerequisites. If you are not sure, use the installation from MacPorts as described in the previous section.
After downloading the compressed package, you should manually extract its contents to your hard drive. For example, you can extract it into /usr/local using the following commands (assuming that you have permission to /usr/local and that the installation package was saved in /tmp/Eiffel_X.Y.tar.bz2, where X.Y stands for the EiffelStudio version):
<code>
cd /usr/local
tar xvfj /tmp/Eiffel_X.Y.tar.bz2</code>
This will install EiffelStudio files into /usr/local/Eiffel_X.Y. Once this is done, jump to the [[#Setting up EiffelStudio|Setting up EiffelStudio]] section in order to complete the installation of EiffelStudio.
==Starting EiffelStudio==
Now everything should be properly installed and you should be able to run the compiler. Simply navigate to /Applications/MacPorts/Eiffel''XX'' and double click the EiffelStudio icon.

View File

@@ -58,9 +58,9 @@ The second distinction reflects two modes of socket communication: stream commun
<code>IO_MEDIUM</code> has all the basic input and output facilities applying to objects of basic types, as also offered in FILE(see the specification of<code> FILE</code> in reference [ [[Bibliography|2]] ]). So you can use sockets to send and receive characters, integers, real numbers in simple or double precision and strings. For example, if the type of
`my_socket' is one of the socket classes shown on the preceding figures, any of the following calls will be valid:
<code>
my_socket.putstring ("Some text")
my_socket.readint
my_last_integer := my_socket.lastint
my_socket.put_string ("Some text")
my_socket.read_integer_32
my_last_integer := my_socket.last_integer_32
</code>
Since sockets are bidirectional, these instructions may all appear as part of the same class provided you make sure to guarantee proper synchronization between senders and receivers. You may also prefer to specialize certain sockets for sending and others for receiving.