The current implementation uses the hosting system's facilities for name-to-address and other conversions.
net!machine!serviceEach component of the request is required.
Response Format
The application can obtain the converted address by reading the /net/cs interface file. The response will consist of two fields of the form:
/net/net/clone ipaddr!portnoThe first field is the name of the file to open to reserve a connection on Inferno's IP device. The second field can be used to construct a "connect" message for the ctl file returned by the open of clone.
/etc/services
|
Unix-hosted systems.
|
Windows\services
|
Windows-hosted systems
|
Caveats
Applications that use a single file descriptor for both reading and writing should take care to reset the file offset to 0 between writing the request and reading the response. Otherwise, a truncated response will be read. Applications using buffered I/O should flush after resetting the offset. See Also