Add text transport function.(Using java socket)