In the examples I found functions like WifiClient client(server, "80", PROTO_TCP),
Wireless.begin(&wireless_prof), client.stop(). And there are lots more than the ones I mentioned. I need an explanation for all these functions. What are they doing? Which parameters do they need?
Of course, you'd really need to look at the documentation for the mysterious WiFiClient class to know for sure.