porting reliable datagram...not complete yet