Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple HTTP server built fon top of ServerSocket component

Status
Not open for further replies.

ssawtelle

Programmer
Aug 16, 2001
1
US
Hi all,

I'm trying to learn about using HTTP for remote control of an embedded system. The embedded system will be the server. I started with the CHAT code and built some simple HTTP code to parse incoming requests from the client and send replies. The problem I have is after I receive a request and process it (send reply), the next request causes an error (Asynchronous socket error 10053). If I set ServerSocket->Active false then set it true again (outside the routine where I set it false), I can process the next message. If I set it false, then true within one routine I get an error (socket error 10048 on API 'bind'). Evidently I don't understand the mechanism to complete the first transaction properly.

Hopefully I'm missing something basic here?

Win NT
C++ Builder 5
non-threaded ServerSocket
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top