Simple questions on Arduino Wifi shield - can it do this (socket?)?

I am just starting to learn wifi and ethernet shields. I have this task at hand: to transfer data to a web server using wifi shield. My knowledge on networking is limited. At the moment, the data is transferred with a GSM modem. The modem requires a library (no documents) and someone wrote me a function call to send the data (text). I'm trying to understand what type of connection was established and how to replace the GSM modem with the wifi.

Here is the core of the GSM code:

   if (myGsmGPRS.socketDialSD("1","0","1035","myServer.com")) {
      Serial.println("Socket Opened"); 
   }

Does this look like the modem is opening a socket (TCF socket?) to the myServer.com? The code before this is to establish network connection with the service provider. The code after this is simple println to send data to myServer.com and then closes the socket.

From what I read on Arduino wifi shield, I only see that client.connect() connects to an HTTP server with URL and port 80.

Just being naive here, will client.connect("myServer.com",1035); possibly replace that socketDialSD()?

Just being naive here, will client.connect("myServer.com",1035); possibly replace that socketDialSD()?

It's not a direct replacement but it does more or less the same. Both open a connection to a server.

Thanks pylon! To get some basic terminology correct, should I say the original code possibly "opens a TCP socket to myServer.com port 1035"?

Without knowing the exact API definition, this would be my guess/interpretation of the given parameters.

Thanks! A guess is good enough for me to proceed with some tests. I wish the GSM library had documentation or I knew a bit more about networking. Without the networking knowledge, I was like a tourist, asking whether a text written in a foreign language meant the direction to the train station or some curse words instead :wink: