[Ns-developers] TCP and UDP layer refactoring

Sébastien Vincent vincent at clarinet.u-strasbg.fr
Fri Jul 25 10:45:59 PDT 2008


Hi,

I am back after having done some STUN / TURN stuff. Sorry to not have 
given some news the past two weeks, I was very busy.

Now I have time to do the prototype of TCP / UDP refactoring in NS-3. I 
will read again all the previous e-mail and begin the implementation 
next tuesday.


Regards
--
Sebastien Vincent

Tom Henderson a écrit :
>> -----Original Message-----
>> From: Mathieu Lacage [mailto:mathieu.lacage at sophia.inria.fr]
>> Sent: Wednesday, July 9, 2008 07:23 AM
>> To: 'Tom Henderson'
>> Cc: 'Sébastien Vincent', ns-developers at ISI.EDU
>> Subject: Re: [Ns-developers] TCP and UDP layer refactoring
>>
>>     
> <snip>
>   
>> Note that this does not _require_ you to implement multiple tcp sockets
>> for ipv4 and ipv6. It just requires you to implement multiple socket
>> factories: TcpIpv4SocketFactory and TcpIpv6SocketFactory (and,
>> potentially, if you think it is useful, TcpSocketFactory). Each of these
>> factories could potentially create instances of the same object type if
>> it is easier from an implementation perspective but what matters is that
>> these different socket instances have very slightly different semantics
>> with regard to address type checking.
>>
>>     
>  Mathieu,
>
> I agree with your reasoning on this.  I probably would opt for the multiple factories as you suggest.  The TypeId "ns3::UdpIpv4SocketFactory" is then kind of serving as a complete replacement for the domain/type/protocol tuple of the socket() call.
>
>
>
>   


-- 
Sébastien Vincent
Network Engineer at University Louis  Pasteur, Strasbourg
Phone : +33 390244586
Address : LSIIT - Boulevard Sébastien Brant BP 10413
67412 Illkirch CEDEX France



More information about the Ns-developers mailing list