How to make the connection reliable

KA
Kabil Akpınar
Sun, Nov 14, 2010 10:53 AM

Hi All;
I need some idea (although I have some) about making the connection reliable
between peers. There are some open source libraries out there like enet
rrunning on UDP. But the libraries in general, opens a server and client on
UDP and sends the data reliably through the UDP channel. But ICE transport
or STUN (which are very useful for traversing NATs) gives us a pair of
callbacks as you know, not sockets.

So what would your suggestion to integrate UDP based implementation to
callback ones as it is in ICE, STUN or TURN.

Thanks in advance.

--
Kabil Akpınar

Hi All; I need some idea (although I have some) about making the connection reliable between peers. There are some open source libraries out there like enet rrunning on UDP. But the libraries in general, opens a server and client on UDP and sends the data reliably through the UDP channel. But ICE transport or STUN (which are very useful for traversing NATs) gives us a pair of callbacks as you know, not sockets. So what would your suggestion to integrate UDP based implementation to callback ones as it is in ICE, STUN or TURN. Thanks in advance. -- Kabil Akpınar
BS
bo shi
Wed, Nov 24, 2010 5:00 PM

I am looking for such solution too.
I think we maybe need to port enet or other rudp libs.

2010/11/14 Kabil Akpınar kabilakpinar@gmail.com:

Hi All;
I need some idea (although I have some) about making the connection reliable
between peers. There are some open source libraries out there like enet
rrunning on UDP. But the libraries in general, opens a server and client on
UDP and sends the data reliably through the UDP channel. But ICE transport
or STUN (which are very useful for traversing NATs) gives us a pair of
callbacks as you know, not sockets.
So what would your suggestion to integrate UDP based implementation to
callback ones as it is in ICE, STUN or TURN.
Thanks in advance.

--
Kabil Akpınar


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

I am looking for such solution too. I think we maybe need to port enet or other rudp libs. 2010/11/14 Kabil Akpınar <kabilakpinar@gmail.com>: > Hi All; > I need some idea (although I have some) about making the connection reliable > between peers. There are some open source libraries out there like enet > rrunning on UDP. But the libraries in general, opens a server and client on > UDP and sends the data reliably through the UDP channel. But ICE transport > or STUN (which are very useful for traversing NATs) gives us a pair of > callbacks as you know, not sockets. > So what would your suggestion to integrate UDP based implementation to > callback ones as it is in ICE, STUN or TURN. > Thanks in advance. > > -- > Kabil Akpınar > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > >
KA
Kabil Akpınar
Wed, Nov 24, 2010 8:13 PM

in fact, I have already started porting enet with callbacks... I will let
you know when I am finished, probably tomorrow, if everything goes well.

And I will suggest you to port RUDP if you can, by the way, which rudp lib
do you mean?

2010/11/24 bo shi cnshibo@gmail.com

I am looking for such solution too.
I think we maybe need to port enet or other rudp libs.

2010/11/14 Kabil Akpınar kabilakpinar@gmail.com:

Hi All;
I need some idea (although I have some) about making the

connection reliable

between peers. There are some open source libraries out there like enet
rrunning on UDP. But the libraries in general, opens a server and client

on

UDP and sends the data reliably through the UDP channel. But ICE

transport

or STUN (which are very useful for traversing NATs) gives us a pair of
callbacks as you know, not sockets.
So what would your suggestion to integrate UDP based implementation to
callback ones as it is in ICE, STUN or TURN.
Thanks in advance.

--
Kabil Akpınar


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

--
Kabil Akpınar

in fact, I have already started porting enet with callbacks... I will let you know when I am finished, probably tomorrow, if everything goes well. And I will suggest you to port RUDP if you can, by the way, which rudp lib do you mean? 2010/11/24 bo shi <cnshibo@gmail.com> > I am looking for such solution too. > I think we maybe need to port enet or other rudp libs. > > 2010/11/14 Kabil Akpınar <kabilakpinar@gmail.com>: > > Hi All; > > I need some idea (although I have some) about making the > connection reliable > > between peers. There are some open source libraries out there like enet > > rrunning on UDP. But the libraries in general, opens a server and client > on > > UDP and sends the data reliably through the UDP channel. But ICE > transport > > or STUN (which are very useful for traversing NATs) gives us a pair of > > callbacks as you know, not sockets. > > So what would your suggestion to integrate UDP based implementation to > > callback ones as it is in ICE, STUN or TURN. > > Thanks in advance. > > > > -- > > Kabil Akpınar > > > > _______________________________________________ > > Visit our blog: http://blog.pjsip.org > > > > pjsip mailing list > > pjsip@lists.pjsip.org > > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > > > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > -- Kabil Akpınar
BS
bo shi
Thu, Nov 25, 2010 4:20 AM

I only know libnice implement rudp in c, but based on glib.
udt maybe another selection, but the interface is not very fit for pjlib.

waiting good news from you.

2010/11/25 Kabil Akpınar kabilakpinar@gmail.com:

in fact, I have already started porting enet with callbacks... I will let
you know when I am finished, probably tomorrow, if everything goes well.
And I will suggest you to port RUDP if you can, by the way, which rudp lib
do you mean?

2010/11/24 bo shi cnshibo@gmail.com

I am looking for such solution too.
I think we maybe need to port enet or other rudp libs.

2010/11/14 Kabil Akpınar kabilakpinar@gmail.com:

Hi All;
I need some idea (although I have some) about making the
connection reliable
between peers. There are some open source libraries out there like enet
rrunning on UDP. But the libraries in general, opens a server and client
on
UDP and sends the data reliably through the UDP channel. But ICE
transport
or STUN (which are very useful for traversing NATs) gives us a pair of
callbacks as you know, not sockets.
So what would your suggestion to integrate UDP based implementation to
callback ones as it is in ICE, STUN or TURN.
Thanks in advance.

--
Kabil Akpınar


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

I only know libnice implement rudp in c, but based on glib. udt maybe another selection, but the interface is not very fit for pjlib. waiting good news from you. 2010/11/25 Kabil Akpınar <kabilakpinar@gmail.com>: > in fact, I have already started porting enet with callbacks... I will let > you know when I am finished, probably tomorrow, if everything goes well. > And I will suggest you to port RUDP if you can, by the way, which rudp lib > do you mean? > > 2010/11/24 bo shi <cnshibo@gmail.com> >> >> I am looking for such solution too. >> I think we maybe need to port enet or other rudp libs. >> >> 2010/11/14 Kabil Akpınar <kabilakpinar@gmail.com>: >> > Hi All; >> > I need some idea (although I have some) about making the >> > connection reliable >> > between peers. There are some open source libraries out there like enet >> > rrunning on UDP. But the libraries in general, opens a server and client >> > on >> > UDP and sends the data reliably through the UDP channel. But ICE >> > transport >> > or STUN (which are very useful for traversing NATs) gives us a pair of >> > callbacks as you know, not sockets. >> > So what would your suggestion to integrate UDP based implementation to >> > callback ones as it is in ICE, STUN or TURN. >> > Thanks in advance. >> > >> > -- >> > Kabil Akpınar >> > >> > _______________________________________________ >> > Visit our blog: http://blog.pjsip.org >> > >> > pjsip mailing list >> > pjsip@lists.pjsip.org >> > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >> > >> > >> >> _______________________________________________ >> Visit our blog: http://blog.pjsip.org >> >> pjsip mailing list >> pjsip@lists.pjsip.org >> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > > > -- > Kabil Akpınar > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > >
KA
Kabil Akpınar
Thu, Nov 25, 2010 9:10 AM

2010/11/25 bo shi cnshibo@gmail.com

I only know libnice implement rudp in c, but based on glib.
udt maybe another selection, but the interface is not very fit for pjlib.

Where exactly is rudp in libnice, can you point it?

waiting good news from you.

Once I am finished I will send you the integrated code also. So we can
together evaluate the behaviour.

2010/11/25 Kabil Akpınar kabilakpinar@gmail.com:

in fact, I have already started porting enet with callbacks... I will let
you know when I am finished, probably tomorrow, if everything goes well.
And I will suggest you to port RUDP if you can, by the way, which rudp

lib

do you mean?

2010/11/24 bo shi cnshibo@gmail.com

I am looking for such solution too.
I think we maybe need to port enet or other rudp libs.

2010/11/14 Kabil Akpınar kabilakpinar@gmail.com:

Hi All;
I need some idea (although I have some) about making the
connection reliable
between peers. There are some open source libraries out there like

enet

rrunning on UDP. But the libraries in general, opens a server and

client

on
UDP and sends the data reliably through the UDP channel. But ICE
transport
or STUN (which are very useful for traversing NATs) gives us a pair of
callbacks as you know, not sockets.
So what would your suggestion to integrate UDP based implementation to
callback ones as it is in ICE, STUN or TURN.
Thanks in advance.

--
Kabil Akpınar


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

--
Kabil Akpınar

2010/11/25 bo shi <cnshibo@gmail.com> > I only know libnice implement rudp in c, but based on glib. > udt maybe another selection, but the interface is not very fit for pjlib. > Where exactly is rudp in libnice, can you point it? > waiting good news from you. Once I am finished I will send you the integrated code also. So we can together evaluate the behaviour. > 2010/11/25 Kabil Akpınar <kabilakpinar@gmail.com>: > > in fact, I have already started porting enet with callbacks... I will let > > you know when I am finished, probably tomorrow, if everything goes well. > > And I will suggest you to port RUDP if you can, by the way, which rudp > lib > > do you mean? > > > > 2010/11/24 bo shi <cnshibo@gmail.com> > >> > >> I am looking for such solution too. > >> I think we maybe need to port enet or other rudp libs. > >> > >> 2010/11/14 Kabil Akpınar <kabilakpinar@gmail.com>: > >> > Hi All; > >> > I need some idea (although I have some) about making the > >> > connection reliable > >> > between peers. There are some open source libraries out there like > enet > >> > rrunning on UDP. But the libraries in general, opens a server and > client > >> > on > >> > UDP and sends the data reliably through the UDP channel. But ICE > >> > transport > >> > or STUN (which are very useful for traversing NATs) gives us a pair of > >> > callbacks as you know, not sockets. > >> > So what would your suggestion to integrate UDP based implementation to > >> > callback ones as it is in ICE, STUN or TURN. > >> > Thanks in advance. > >> > > >> > -- > >> > Kabil Akpınar > >> > > >> > _______________________________________________ > >> > Visit our blog: http://blog.pjsip.org > >> > > >> > pjsip mailing list > >> > pjsip@lists.pjsip.org > >> > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > >> > > >> > > >> > >> _______________________________________________ > >> Visit our blog: http://blog.pjsip.org > >> > >> pjsip mailing list > >> pjsip@lists.pjsip.org > >> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > > > > > > > -- > > Kabil Akpınar > > > > _______________________________________________ > > Visit our blog: http://blog.pjsip.org > > > > pjsip mailing list > > pjsip@lists.pjsip.org > > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > > > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > -- Kabil Akpınar
KA
Kabil Akpınar
Thu, Nov 25, 2010 9:17 AM

25 Kasım 2010 11:10 tarihinde Kabil Akpınar kabilakpinar@gmail.com yazdı:

2010/11/25 bo shi cnshibo@gmail.com

I only know libnice implement rudp in c, but based on glib.

udt maybe another selection, but the interface is not very fit for pjlib.

Where exactly is rudp in libnice, can you point it?

Ok, I found it PseudoTcpSockethttp://nice.freedesktop.org/libnice/libnice-Pseudo-TCP-Socket.html,
but how about implementation, still don't know. Do you know how it
implements TCP behaviour? Directly socket usage or rx,tx callbacks?

waiting good news from you.

Once I am finished I will send you the integrated code also. So we can
together evaluate the behaviour.

2010/11/25 Kabil Akpınar kabilakpinar@gmail.com:

in fact, I have already started porting enet with callbacks... I will

let

you know when I am finished, probably tomorrow, if everything goes well.
And I will suggest you to port RUDP if you can, by the way, which rudp

lib

do you mean?

2010/11/24 bo shi cnshibo@gmail.com

I am looking for such solution too.
I think we maybe need to port enet or other rudp libs.

2010/11/14 Kabil Akpınar kabilakpinar@gmail.com:

Hi All;
I need some idea (although I have some) about making the
connection reliable
between peers. There are some open source libraries out there like

enet

rrunning on UDP. But the libraries in general, opens a server and

client

on
UDP and sends the data reliably through the UDP channel. But ICE
transport
or STUN (which are very useful for traversing NATs) gives us a pair

of

callbacks as you know, not sockets.
So what would your suggestion to integrate UDP based implementation

to

callback ones as it is in ICE, STUN or TURN.
Thanks in advance.

--
Kabil Akpınar


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

--
Kabil Akpınar

--
Kabil Akpınar

25 Kasım 2010 11:10 tarihinde Kabil Akpınar <kabilakpinar@gmail.com> yazdı: > 2010/11/25 bo shi <cnshibo@gmail.com> > > I only know libnice implement rudp in c, but based on glib. >> udt maybe another selection, but the interface is not very fit for pjlib. >> > Where exactly is rudp in libnice, can you point it? > Ok, I found it PseudoTcpSocket<http://nice.freedesktop.org/libnice/libnice-Pseudo-TCP-Socket.html>, but how about implementation, still don't know. Do you know how it implements TCP behaviour? Directly socket usage or rx,tx callbacks? > > >> waiting good news from you. > > Once I am finished I will send you the integrated code also. So we can > together evaluate the behaviour. > >> > > 2010/11/25 Kabil Akpınar <kabilakpinar@gmail.com>: >> > in fact, I have already started porting enet with callbacks... I will >> let >> > you know when I am finished, probably tomorrow, if everything goes well. >> > And I will suggest you to port RUDP if you can, by the way, which rudp >> lib >> > do you mean? >> > >> > 2010/11/24 bo shi <cnshibo@gmail.com> >> >> >> >> I am looking for such solution too. >> >> I think we maybe need to port enet or other rudp libs. >> >> >> >> 2010/11/14 Kabil Akpınar <kabilakpinar@gmail.com>: >> >> > Hi All; >> >> > I need some idea (although I have some) about making the >> >> > connection reliable >> >> > between peers. There are some open source libraries out there like >> enet >> >> > rrunning on UDP. But the libraries in general, opens a server and >> client >> >> > on >> >> > UDP and sends the data reliably through the UDP channel. But ICE >> >> > transport >> >> > or STUN (which are very useful for traversing NATs) gives us a pair >> of >> >> > callbacks as you know, not sockets. >> >> > So what would your suggestion to integrate UDP based implementation >> to >> >> > callback ones as it is in ICE, STUN or TURN. >> >> > Thanks in advance. >> >> > >> >> > -- >> >> > Kabil Akpınar >> >> > >> >> > _______________________________________________ >> >> > Visit our blog: http://blog.pjsip.org >> >> > >> >> > pjsip mailing list >> >> > pjsip@lists.pjsip.org >> >> > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >> >> > >> >> > >> >> >> >> _______________________________________________ >> >> Visit our blog: http://blog.pjsip.org >> >> >> >> pjsip mailing list >> >> pjsip@lists.pjsip.org >> >> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >> > >> > >> > >> > -- >> > Kabil Akpınar >> > >> > _______________________________________________ >> > Visit our blog: http://blog.pjsip.org >> > >> > pjsip mailing list >> > pjsip@lists.pjsip.org >> > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >> > >> > >> >> _______________________________________________ >> Visit our blog: http://blog.pjsip.org >> >> pjsip mailing list >> pjsip@lists.pjsip.org >> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >> > > > > -- > Kabil Akpınar > > -- Kabil Akpınar
BS
bo shi
Thu, Nov 25, 2010 12:06 PM

sorry, I am wrong, libnice just implement pseudo tcp as libjingle,  not rudp.

2010/11/25 Kabil Akpınar kabilakpinar@gmail.com:

2010/11/25 bo shi cnshibo@gmail.com

I only know libnice implement rudp in c, but based on glib.
udt maybe another selection, but the interface is not very fit for pjlib.

Where exactly is rudp in libnice, can you point it?

waiting good news from you.

Once I am finished I will send you the integrated code also. So we can
together evaluate the behaviour.

2010/11/25 Kabil Akpınar kabilakpinar@gmail.com:

in fact, I have already started porting enet with callbacks... I will
let
you know when I am finished, probably tomorrow, if everything goes well.
And I will suggest you to port RUDP if you can, by the way, which rudp
lib
do you mean?

2010/11/24 bo shi cnshibo@gmail.com

I am looking for such solution too.
I think we maybe need to port enet or other rudp libs.

2010/11/14 Kabil Akpınar kabilakpinar@gmail.com:

Hi All;
I need some idea (although I have some) about making the
connection reliable
between peers. There are some open source libraries out there like
enet
rrunning on UDP. But the libraries in general, opens a server and
client
on
UDP and sends the data reliably through the UDP channel. But ICE
transport
or STUN (which are very useful for traversing NATs) gives us a pair
of
callbacks as you know, not sockets.
So what would your suggestion to integrate UDP based implementation
to
callback ones as it is in ICE, STUN or TURN.
Thanks in advance.

--
Kabil Akpınar


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

sorry, I am wrong, libnice just implement pseudo tcp as libjingle, not rudp. 2010/11/25 Kabil Akpınar <kabilakpinar@gmail.com>: > 2010/11/25 bo shi <cnshibo@gmail.com> >> >> I only know libnice implement rudp in c, but based on glib. >> udt maybe another selection, but the interface is not very fit for pjlib. > > Where exactly is rudp in libnice, can you point it? > >> >> waiting good news from you. > > Once I am finished I will send you the integrated code also. So we can > together evaluate the behaviour. >> >> >> >> 2010/11/25 Kabil Akpınar <kabilakpinar@gmail.com>: >> > in fact, I have already started porting enet with callbacks... I will >> > let >> > you know when I am finished, probably tomorrow, if everything goes well. >> > And I will suggest you to port RUDP if you can, by the way, which rudp >> > lib >> > do you mean? >> > >> > 2010/11/24 bo shi <cnshibo@gmail.com> >> >> >> >> I am looking for such solution too. >> >> I think we maybe need to port enet or other rudp libs. >> >> >> >> 2010/11/14 Kabil Akpınar <kabilakpinar@gmail.com>: >> >> > Hi All; >> >> > I need some idea (although I have some) about making the >> >> > connection reliable >> >> > between peers. There are some open source libraries out there like >> >> > enet >> >> > rrunning on UDP. But the libraries in general, opens a server and >> >> > client >> >> > on >> >> > UDP and sends the data reliably through the UDP channel. But ICE >> >> > transport >> >> > or STUN (which are very useful for traversing NATs) gives us a pair >> >> > of >> >> > callbacks as you know, not sockets. >> >> > So what would your suggestion to integrate UDP based implementation >> >> > to >> >> > callback ones as it is in ICE, STUN or TURN. >> >> > Thanks in advance. >> >> > >> >> > -- >> >> > Kabil Akpınar >> >> > >> >> > _______________________________________________ >> >> > Visit our blog: http://blog.pjsip.org >> >> > >> >> > pjsip mailing list >> >> > pjsip@lists.pjsip.org >> >> > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >> >> > >> >> > >> >> >> >> _______________________________________________ >> >> Visit our blog: http://blog.pjsip.org >> >> >> >> pjsip mailing list >> >> pjsip@lists.pjsip.org >> >> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >> > >> > >> > >> > -- >> > Kabil Akpınar >> > >> > _______________________________________________ >> > Visit our blog: http://blog.pjsip.org >> > >> > pjsip mailing list >> > pjsip@lists.pjsip.org >> > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >> > >> > >> >> _______________________________________________ >> Visit our blog: http://blog.pjsip.org >> >> pjsip mailing list >> pjsip@lists.pjsip.org >> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > > > -- > Kabil Akpınar > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > >