Hi, how do I keep a Socket declared forever so i can call it in other methods?
All the tutorials i've read just have a server, client, server sends client message, client disconnects. What if I want to remain connected? I've tried making the sockets global but that didn't work somehow. Any tips?
and please excuse my ignorance as i am quite the beginner.
All the tutorials i've read just have a server, client, server sends client message, client disconnects. What if I want to remain connected? I've tried making the sockets global but that didn't work somehow. Any tips?