I'm trying to use a third-party API that is a socket based API with SQL CLR and vb.net. I know how to do this with REST APIs, however, I cannot figure out how to get started with a Socket API.
Does anyone have any references or a very basic "GET" example I can use to learn from?
@ptownbro, it seems to me you ask how to actually use a Socket API, not so much Socket API in SQLCLR. My suggestion is to read the documentation of the API and see what methods there are. Generally speaking this is what you do:
The above is very generic explanation, as I do not know what API you intend to use. Here is a page with an example how to do it in C# using .NET API.
Notice that I only mention sending. I strongly advise against receiving if you intend to do this from SQLCLR, as you should use "normal" T-SQL DML statements to get data into SQL Server.