1. Client/Server
- Posted by Volodymyr Ilnytskyy <v7ilnytskyy at yahoo.com> Oct 29, 2006
- 438 views
- Last edited Oct 30, 2006
--0-273284915-1162163094=:50452 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Help me please who have Client/Server programming experience. I'm trying use socketlib.eu library for server program but can't resolve two problems: 1. I can't extract client's IP from communication parameters. I'm trying to do it in SockAccept function after clientsock = fast_allocate(100) intp = fast_allocate(8) cd = c_func(accept, {sd, clientsock, intp}) I add my variant pointer_to_structure = peek4u(clientsock+2) client_ip = peek({pointer_to_structure+4, 8}) but it don't work. What wrong and how do it correct ? 2. ServerLoop terminate work if any client close connection. Why and in what manner I can fix this situation ? Thanks --------------------------------- Access over 1 million songs - Yahoo! Music Unlimited Try it today. --0-273284915-1162163094=:50452 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Help me please who have Client/Server programming experience. I'm trying use socketlib.eu library for server program but can't resolve two problems:<br><br>1. I can't extract client's IP from communication parameters. I'm trying to do it in SockAccept function after<br><br> clientsock = fast_allocate(100)<br> intp = fast_allocate(8)<br> cd = c_func(accept, {sd, clientsock, intp})<br><br>I add my variant<br><br> pointer_to_structure = peek4u(clientsock+2)<br> client_ip = peek({pointer_to_structure+4, 8})<br><br>but it don't work.<br><br>What wrong and how do it correct ?<br><br>2. ServerLoop terminate work if any client close connection. Why and in what manner I can fix this situation ?<br><br>Thanks<br><p> <hr size=1>Access over 1 million songs - Yahoo! Music Unlimited <a href="http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=36035/*http://music.yahoo.com/unlimited/">Try it today.</a> --0-273284915-1162163094=:50452--
2. Client/Server
- Posted by LUIS RAUL CAMPOS ARRIBAS <lcampoar8 at FAR.UB.EDU> Nov 10, 2000
- 422 views
Hi all, has anyone developed a port of the RDC.e for Linux (using UNIX sockets)routines for win32? I would be interested on creating a client for windows platform written in Euphoria...so my friends can conect to my Linux server and use it as if it were a kind of irc server... thanks, Luis
3. Re: Client/Server
- Posted by "Darth Maul, aka Matt" <uglyfish87 at HOTMAIL.COM> Nov 11, 2000
- 409 views
Well, the only way I know of to do that is to use the Kernel to make threads from Euphoria routines and use a socket library like Eusock or whatever they call it(basically, Java could do it much better. That's a tip RDS, we need built-in threads).
4. Re: Client/Server
- Posted by cense <cense at mail.ru> Nov 11, 2000
- 439 views
- Last edited Nov 12, 2000
On Fri, 10 Nov 2000, LUIS RAUL CAMPOS ARRIBAS wrote: >> Hi all, >> has anyone developed a port of the RDC.e for Linux (using UNIX >> sockets)routines for win32? I would be interested on creating a client >> for windows platform written in Euphoria...so my friends can conect to >> my Linux server and use it as if it were a kind of irc server... >> >> thanks, >> Luis I know someone did a wrapper for the Winsock API sometime ago. goto http://www.rapideuphoria.com/ and search the archives for "winsock" or "sockets" -- evil, corruption and bad taste ^[cense]