In my application, I am using the [url removed, login to view] to perform simple TCP activity. I would like to get rid of this dependency by replacing my code with VB [url removed, login to view] API code. Here's what I need:
A function that I can call to listen on port 80, binding **only** to the localhost. I need it to accept every incoming connection (multiple, at the same time) and receive data. If this received data contains a specific string, it needs to send back a some text and close the socket (and listen again). Otherwise, it needs to send back a .GIF (attached below).
Second, I need another function that I can call with a port and IP, connect, send data, and process any recieved data before closing.
I need this code to be as **simple and minimal** as possible, yet still remain flexible enought that once I understand how it works, I can modify functionality if needed.
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.