Re: [E-devel] Problem using Ecore_Con
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hmm... perhaps it was just the retarded me who just quite couldn't figure out how it worked. I thought ecore_con_server_data_get actually was used to retrieve data from the server I've connected to. Apparently that was wrong. My problem is half solved now. / Chris Chris Stromblad wrote: > Hey again, it's me again! > > Before I start asking things, please let me know if my questions are > retarded and are better spent thinking about restrained, under the > influence and heavily guarded. Moving on. > > I'm attempting some very simple stuff using the Ecore_Con stuff. EFL > versions are the latest possible to download on > enlightenment.freedesktop.org. > > My problem is this. I use ecore_con_server_connect to, well, connect to > a server. I add a connection handler for ECORE_CON_EVENT_SERVER_ADD. > Some data is sent using ecore_con_server_send. A handler for data > retrieval has also been added. > > The handlers works as expected and deals with the emitted signals. Now > this is my problem. When the data handler gets called, > ECORE_CON_EVENT_SERVER_DATA, I subsequently use the > ecore_con_server_data_get. This function however always fail? Using > TCPDUMP I can see that the data actually is sent back from the server as > expected. So, now my questions is, how come the function always fail? > > Must be me missing something obvious, no? > > / Chris - - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.4 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iQEVAwUBRk9+9hs+yp9zuAsMAQKTVAf/SncbhSKxZWvxMm+B549lwvBIFyB9doLo R1WjYKUobuv6gEqMzK7W4NMhDGW3HeWTYVRWb3VtDGSZFi98UUYx+tPgHT2wUrKL /D7jfYDvfM8o9af+e2wFJ9I1/ZNviSSBT1zSPWc9wO9n3ByLbd431DKQZpcuoF9O PO7Zvbyp+oZQKPeLR1PzPUwE4c+/WfkGSHL3zyu3Zu701DLz1cPEtv5BWSjoD/Oj ILm4I1MTwmE9D5zD7v7ivKRIOImi1sC8+INUC5hHDXM1XbV5NnM7zs+9BgqQL46C +9OWE8rGmP6a9en4M0P/ftu1MSVnFp6iDWp+Gq5R3EOMtMQ0BIIe5g== =9mwU -END PGP SIGNATURE- - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] Problem using Ecore_Con
The data should be in the event struct you receive on SERVER_DATA Sebastian Chris Stromblad wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hmm... perhaps it was just the retarded me who just quite couldn't > figure out how it worked. I thought ecore_con_server_data_get actually > was used to retrieve data from the server I've connected to. > > Apparently that was wrong. > > My problem is half solved now. > > / Chris > > Chris Stromblad wrote: >> Hey again, it's me again! >> >> Before I start asking things, please let me know if my questions are >> retarded and are better spent thinking about restrained, under the >> influence and heavily guarded. Moving on. >> >> I'm attempting some very simple stuff using the Ecore_Con stuff. EFL >> versions are the latest possible to download on >> enlightenment.freedesktop.org. >> >> My problem is this. I use ecore_con_server_connect to, well, connect to >> a server. I add a connection handler for ECORE_CON_EVENT_SERVER_ADD. >> Some data is sent using ecore_con_server_send. A handler for data >> retrieval has also been added. >> >> The handlers works as expected and deals with the emitted signals. Now >> this is my problem. When the data handler gets called, >> ECORE_CON_EVENT_SERVER_DATA, I subsequently use the >> ecore_con_server_data_get. This function however always fail? Using >> TCPDUMP I can see that the data actually is sent back from the server as >> expected. So, now my questions is, how come the function always fail? >> >> Must be me missing something obvious, no? >> >> / Chris > > - - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > enlightenment-devel mailing list > enlightenment-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > > -BEGIN PGP SIGNATURE- > Version: GnuPG v2.0.4 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iQEVAwUBRk9+9hs+yp9zuAsMAQKTVAf/SncbhSKxZWvxMm+B549lwvBIFyB9doLo > R1WjYKUobuv6gEqMzK7W4NMhDGW3HeWTYVRWb3VtDGSZFi98UUYx+tPgHT2wUrKL > /D7jfYDvfM8o9af+e2wFJ9I1/ZNviSSBT1zSPWc9wO9n3ByLbd431DKQZpcuoF9O > PO7Zvbyp+oZQKPeLR1PzPUwE4c+/WfkGSHL3zyu3Zu701DLz1cPEtv5BWSjoD/Oj > ILm4I1MTwmE9D5zD7v7ivKRIOImi1sC8+INUC5hHDXM1XbV5NnM7zs+9BgqQL46C > +9OWE8rGmP6a9en4M0P/ftu1MSVnFp6iDWp+Gq5R3EOMtMQ0BIIe5g== > =9mwU > -END PGP SIGNATURE- > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > enlightenment-devel mailing list > enlightenment-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] Problem using Ecore_Con
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yeah thanks, I did figure it out in the end. There are however something that I would consider a bug. Obviously it's also likely it's simply me who are not using it correctly. Such as: If I connect to a web server and use HTTP/1.0. The server will disconnect after sending the requested resource. However, if I use ecore_con_server_connected_get, it will still report as being connected. Trying to send something using the server handle will fail, yet the 'connecting' (the one inside the server struct in ecore_con.c/h) variable will not be updated. Or so it seems. Something I'm missing here? / Chris PS: Am I perhaps posting in the wrong list? Perhaps I should ask my questions on the enlightenment-users list instead? Sebastian Dransfeld wrote: > The data should be in the event struct you receive on SERVER_DATA > > Sebastian > > Chris Stromblad wrote: > Hmm... perhaps it was just the retarded me who just quite couldn't > figure out how it worked. I thought ecore_con_server_data_get actually > was used to retrieve data from the server I've connected to. > > Apparently that was wrong. > > My problem is half solved now. > > / Chris > > Chris Stromblad wrote: Hey again, it's me again! Before I start asking things, please let me know if my questions are retarded and are better spent thinking about restrained, under the influence and heavily guarded. Moving on. I'm attempting some very simple stuff using the Ecore_Con stuff. EFL versions are the latest possible to download on enlightenment.freedesktop.org. My problem is this. I use ecore_con_server_connect to, well, connect to a server. I add a connection handler for ECORE_CON_EVENT_SERVER_ADD. Some data is sent using ecore_con_server_send. A handler for data retrieval has also been added. The handlers works as expected and deals with the emitted signals. Now this is my problem. When the data handler gets called, ECORE_CON_EVENT_SERVER_DATA, I subsequently use the ecore_con_server_data_get. This function however always fail? Using TCPDUMP I can see that the data actually is sent back from the server as expected. So, now my questions is, how come the function always fail? Must be me missing something obvious, no? / Chris > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > enlightenment-devel mailing list > enlightenment-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > >> - - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > enlightenment-devel mailing list > enlightenment-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.4 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iQEVAwUBRlBh/Rs+yp9zuAsMAQJ7zggAgoxooRjjl4CE7BS53qolnPuA+WIivkZN ChTYXyKbWwLmhTD8bO/tUJBzVI0n5wIt/4laGrshxF8C9BrZL0x5/6sxzMR/3Zpu lWSz9PqdQ6DRvdUtoDFj7rb9aycSYe/eGwfMVrhVLtlgc/SmFarbH8PzvC7HEJn7 fBNucVbVUGX/OvHbrKtEVP+TPorwjQ2tgtWBr0E1RtIXi+mNKs6FMEUaBmklyKpm HSG4dLFOkVatiBYD7mbdrougZh3G8Tl4ELPQyvir1PTiMRdJC/rCW1OtE5QIx25L gbxaCkygUBGfKMvC+VNE9O4KQ+rcgeK1WKGNvTYEZOa3IiUHdwfjGg== =90ul -END PGP SIGNATURE- - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] Problem using Ecore_Con
Chris Stromblad [2007-05-20 14:58]: Hi Chris, > Yeah thanks, I did figure it out in the end. There are however something > that I would consider a bug. Obviously it's also likely it's simply me > who are not using it correctly. > > Such as: If I connect to a web server and use HTTP/1.0. The server will > disconnect after sending the requested resource. However, if I use > ecore_con_server_connected_get, it will still report as being connected. > Trying to send something using the server handle will fail, yet the > 'connecting' (the one inside the server struct in ecore_con.c/h) > variable will not be updated. Or so it seems. Do you have an event handler for the SERVER_DEL event? It will be triggered if the remote end closes the connection, IIRC. That won't fix the behaviour of _server_connected_get(), but it might give you a neater way of figuring out whether your connection is in a nice state or not ;) Regards, Tilman -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail? pgppFIWAzXLst.pgp Description: PGP signature - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] Problem using Ecore_Con
On Sun, 20 May 2007 18:28:22 +0200 Tilman Sauerbeck <[EMAIL PROTECTED]> babbled: > Chris Stromblad [2007-05-20 14:58]: > > Hi Chris, > > > Yeah thanks, I did figure it out in the end. There are however something > > that I would consider a bug. Obviously it's also likely it's simply me > > who are not using it correctly. > > > > Such as: If I connect to a web server and use HTTP/1.0. The server will > > disconnect after sending the requested resource. However, if I use > > ecore_con_server_connected_get, it will still report as being connected. > > Trying to send something using the server handle will fail, yet the > > 'connecting' (the one inside the server struct in ecore_con.c/h) > > variable will not be updated. Or so it seems. > > Do you have an event handler for the SERVER_DEL event? It will be > triggered if the remote end closes the connection, IIRC. > That won't fix the behaviour of _server_connected_get(), but it might > give you a neater way of figuring out whether your connection is in a > nice state or not ;) yup. use the server add and dell events. yo get the add (as a client) when you connection has succeeded. you get the del when you have been disconnected. ecore_con cunningly buffers any data u send before it has become connected and will flush it for you on connect. once you have been disconnected the server handle is in a strange state - its alive waiting deletion (you should call server_del now). the is_connected call was meant primarily for before you get the server_add event as it is expected you will delete the server on a serer_del event. > Regards, > Tilman > > -- > A: Because it messes up the order in which people normally read text. > Q: Why is top-posting such a bad thing? > A: Top-posting. > Q: What is the most annoying thing on usenet and in e-mail? > -- - Codito, ergo sum - "I code, therefore I am" -- The Rasterman (Carsten Haitzler)[EMAIL PROTECTED] 裸好多 Tokyo, Japan (東京 日本) - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel