Question: Am I allowed to post a bounty question where I pay money to the person who answers?
I'm really stuck and need help to even begin coding.
I feel the person who helps me through this deserves to be paid since it would take you some work. If you don't want money, just take it and send it to a charity. I can only pay one person though.
What I need is the following:
1) A function you send a string to, and it transfers that UDP string to 127.0.0.1 Port: Pick one (like 32739)
2) A listener that listens to incoming strings, and just stores them in a global variable(maybe char *) rewriting the value over for each incoming string. (I'll handle managing the strings myself)
3) A function that reads the last incoming string from the global variable.
4)Then tell me(step me through) how to compile this to a .dll with Mingw/MSYS for Windows.
To test your code you can run blocking_udp_echo_server.exe under asio/src/examples/echo
Thank you for reading.
________________________________
From: svante karlsson <***@csi.se>
To: Jim Sager <***@yahoo.com>; Unname <asio-***@lists.sourceforge.net>
Sent: Thursday, August 15, 2013 2:13 PM
Subject: Re: [asio-users] Is a DLL even possible with ASIO?
I have no idea of Unreal development kit but as a generic question the answer is:
Yes, you can start threads from within a dll. You can have a ASIO threadpool if you like.
Or you can start a thread outside of the dll and call something like "dll_perform_once" that handles a asio event and returns.
or something like "dll_perform" that does this forever - until its time to exit.
(the dll_perform names where just an example.)
/svante
2013/8/15 Jim Sager <***@yahoo.com>
Hello,
Post by Jim SagerI'm trying to get ASIO working with Unreal Development Kit. UDK doesn't allow C/C++ linking, but only linking to DLL.
1) Send data to a server
2) Receive data from a server
I'm pretty sure it can send data to a server since that can be called in a function.
But receiving data from a server requires an async listening thread which I am not sure can be done with a DLL.
Any help would be appreciated.
,Jim
________________________________
Sent: Tuesday, August 13, 2013 1:44 PM
Subject: [asio-users] Trying to compile a .DLL file, any help is welcome
Hello,
I am trying to compile a .DLL file.
$g++ -c -DBUILDING_X blocking_udp_echo_client_dll.cpp -I /c/asio/include -I /c/boost
$ g++ -shared -o blocking_udp_echo_client_dll.dll blocking_udp_echo_client_dll.
o -Wl,--out-implib, blocking_udp_echo_client_dll.a
blocking_udp_echo_client_dll.o:blocking_udp_echo_client_dll.cpp:(.text$_ZN4asio6
:startup(asio::detail::winsock_init_base::data&, unsigned char, unsigned char)]+
0x57): undefined reference to
blocking_udp_echo_client_dll.o:blocking_udp_echo_client_dll.cpp:(.text$_ZN4asio6
detail17winsock_init_base7cleanupERNS1_4dataE[asio::detail::winsock_init_base::c
leanup(asio::detail::winsock_init_base::data&)]+0x1e): undefined reference to `W
collect2: ld returned 1 exit status
$ g++ -shared -o blocking_udp_echo_client_dll.dll blocking_udp_echo_client_dll.
o -lws2_32 -Wl,--out-implib, blocking_udp_echo_client_dll.a
collect2: ld returned 1 exit
status
Post by Jim Sager------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
asio-users mailing list
https://lists.sourceforge.net/lists/listinfo/asio-users
_______________________________________________
Using Asio? List your project at
http://think-async.com/Asio/WhoIsUsingAsio
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
asio-users mailing list
https://lists.sourceforge.net/lists/listinfo/asio-users
_______________________________________________
Using Asio? List your project at
http://think-async.com/Asio/WhoIsUsingAsio
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
asio-users mailing list
asio-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/asio-users
_______________________________________________
Using Asio? List your project at
http://think-async.com/Asio/WhoIsUsingAsio