Share

OSE

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

OSE-8.0pl1

You are viewing a single message from this topic. View all messages.

  1. 2007-08-31 10:54:47 UTC
    The listener class in OSE C++ class libraries is not intended as a general purpose socket server whereby you get direct access to the socket descriptor. It can be used for creating socket server style services, but reading/writing of data is managed for you and you don't get access directly to the socket.

    The best thing to do is get down OSE 7.0pl11. In that there is still a 'demos' directory (missing from 8.X), which includes some examples you can look at. In particular look at demos/socket/echo-server.cc and other examples in that directory as well. The examples should still compile with OSE 8.X.

    You might also explain more about your need to be getting the socket descriptor and your 'need to pass to another application'. I am a bit confused by this. If you mean to be passing the socket descriptor, across an appropriate pipe which allows descriptors to be sent, to another process which then deals with the data on the socket, the listener in OSE is probably too high an abstraction for you and you might be better off dealing direct with the operating system APIs.

    If you can explain what you are trying to do better, I can perhaps provide some example code.
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.