hi,
i'm new to gsoap so excuse me if my questions are simple...
i read the documentation and now wanna write a small application which
captures all (multicast) soap messages on port 3702. that means, that i
don't have the typical client/server application with a service and a
callback function.
i generated the server skeleton by using soapcpp2 with an almost empty
annotated header file, compiled it, started the application and sent a
client udp message on port 3702 but soap_serve() blocked.
so, my questions:
* are there any faults in the code?
* is there a possibility to capture every soap-over-udp message with gsoap?
thx for answers...
----- code -----
int main()
{
int port = 3702;
struct soap soap;
soap.connect_flags = SO_BROADCAST;
soap_init1(&soap, SOAP_IO_UDP | SO_BROADCAST); // must set UDP flag
// bind to host (NULL=current host) and port:
//if (!soap_valid_socket(soap_bind(&soap, host, port, 100)))
if (!soap_valid_socket(soap_bind(&soap, NULL, port, 100)))
{
soap_print_fault(&soap, stderr);
exit(1);
}
for (;;)
{
printf("wait for soap_serve\n");
fflush(stdout);
if (soap_serve(&soap))
{
soap_print_fault(&soap, stderr); // report the problem
}
printf("after wait for soap_serve");
fflush(stdout);
soap_destroy(&soap);
soap_end(&soap);
}
soap_done(&soap); // close connection
return 0;
}
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/gsoap/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/gsoap/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[email protected]
mailto:[email protected]
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/