![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I'm kinda new at .NET programming so please excuse my ignorance... I'm trying to use C# to download info from a data service which only has a C API. Using P/Invoke I've gotten as far as establishing the connection and sending requests. However, I would like to, as much as possible, use the .NET functionality for this app hence this question.... So I know my IP address, the port # on which the data server listens and the socket # for my app's link to the server. With these items, is it possible for me to create an instance of a System.Net.Sockets.Socket class and somehow associate it with the connection so that I can then use the .NET Socket functionality (select, etc.)? It seemed that the Bind() method might do this, but it asks for the local endpoint, but I'm not sure how to get this. Any and all help will be greatly appreciated. Thanks. |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |