indexing description: "An unix stream socket."; status: "See notice at end of class"; date: "$Date$"; revision: "$Revision$" class UNIX_STREAM_SOCKET inherit STREAM_SOCKET rename address as old_socket_address, cleanup as old_socket_cleanup, name as old_socket_name end UNIX_SOCKET undefine support_storable select address, cleanup, name end create {UNIX_STREAM_SOCKET} create_from_descriptor create make, make_client, make_server feature -- Initialization make is -- Make an unix socket stream. do c_reset_error family := af_unix; type := sock_stream; make_socket end; make_client (a_peer: STRING) is -- Create an unix stream client socket with peer -- address set to `a_peer'. require valid_path: a_peer /= Void do make; create peer_address.make; peer_address.set_path (a_peer.twin) end; make_server (a_name: STRING) is -- Create an unix stream server socket bound to local -- address `a_name'. require valid_path: a_name /= Void and then not a_name.is_empty do make; create address.make; address.set_path (a_name.twin); bind end end -- class UNIX_STREAM_SOCKET --|---------------------------------------------------------------- --| EiffelNet: library of reusable components for ISE Eiffel. --| Copyright (C) 1985-2004 Eiffel Software. All rights reserved. --| Duplication and distribution prohibited. May be used only with --| ISE Eiffel, under terms of user license. --| Contact Eiffel Software for any other use. --| --| Interactive Software Engineering Inc. --| dba Eiffel Software --| 356 Storke Road, Goleta, CA 93117 USA --| Telephone 805-685-1006, Fax 805-685-6869 --| Contact us at: http://www.eiffel.com/general/email.html --| Customer support: http://support.eiffel.com --| For latest info on our award winning products, visit: --| http://www.eiffel.com --|----------------------------------------------------------------