< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index Next in Thread >

Re: [reSIProcate-users] how to get control over the file descriptor


The way you can do this is to derive your own class from Transport (in Transport.hxx under resip/stack). You'll have to implement at least the following methods to do this:

     virtual bool isFinished() const;
     virtual void process(FdSet& fdset);
     virtual void buildFdSet( FdSet& fdset);
     virtual TransportType transport() const;
     virtual bool isReliable() const;
     virtual bool isDatagram() const;
     virtual bool shareStackProcessAndSelect() const;
     virtual void startOwnProcessing();
     virtual bool hasDataToSend() const;
     virtual unsigned int getFifoSize() const;
     virtual void transmit(...);

You can look at the existing transports to get an idea of what these methods are required to do. Be prepared to write a fair bit of code; the UdpTransport class is on the order of 500 lines long.

After you've written your own Transport class, you call addTransport() on the stack with an instance of your class.

/a


Tanim wrote:
dear all,

i am trying to use resiprocate sip stack and i am new to this. i ran the sample code basiccall. it was found that dum handles the file descriptor. but i want to get control over sending and receiving sip messages. i just want to use the sip stack of resiprocate and send and receive messages myself. how can i do that?

another question, can i pass a channel to resip to send messages through that channel? how?

-tanim
_______________________________________________
resiprocate-users mailing list
resiprocate-users@xxxxxxxxxxxxxxx
List Archive: http://list.resiprocate.org/archive/resiprocate-users/