TCP in wrapper library