ok question
(both server and client)
set up server to listen for incoming connections/data
on the client side, i open socket, bind it etc.
i then send data,
can i just keep sending data, or do i have to re-connect to resend again?
ok question
(both server and client)
set up server to listen for incoming connections/data
on the client side, i open socket, bind it etc.
i then send data,
can i just keep sending data, or do i have to re-connect to resend again?
You keep sending and receiving until one end decides to close the connection.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.