What alternatives have sockets programming tcp on c++ linux -


Is it possible to program the network client and server, just open the Linux C ++ using system functions, read And write? Are low-level options chairs?

Thank you.

You need more than all those three.

You socket , bind , listen to , connect accept , And generally use select , poll or platform specific / higher performance modern Apollo (Linux) and kqueue (BSD)

Depending on the type of socket, you can recover with read and write , but you can only read "and The only way to use "write" is to have an embedded super server Can open the network port. Map your port for STDIN and STDOUT and see Inetd if this is your purpose if you go that route, you do not need to read and write You can actually use printf . A program under Inetd should also know that it is a network program.

Why not try a high level library?

Check Boost. Aco


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -