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
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