Score:0

Creating a TCP socket

cn flag

I have been a Mac for a number of years and I am hoping to become a Penguin Fan for the purposes of technology development.

I am in the process of developing connected technology which requires TCP connection from vehicle mounted devices.

Can you advise on how I can create a TCP Socket please. I will need port 2095 to be open and to accept connections when the devices power up.

Score:0
cn flag

This might be a bit more of a development tool question than a networking one?

If you just need to listen temporarily on port 2095 you can use the nc command on any linux machine.

To quickly listen for a single connection you could run:

nc -l 2095

This would accept a single connection, show you all of the characters sent from the 'client' and then close nc.

If you wanted to accept multiple connections:

nc -k -l 2095

^C to exit..

This is useful for testing, but if you're looking for a permanent / stable solution it will be development tool specific..

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.