![]() |
| ||
| Socket programming in IPv6? Hi, I'm still pretty new to socket programming and I'm using Fedora Core 5. Currently I need a simple IPv6 client to send text messages to an IPv6 Server. From some sample codes that I have gotten, it could work in IPv4, but the code could not work in IPv6. I've tried changing some parts of the code but it still can't work properly. Can someone help to see where's the problem? Thanks, KiaN Client side: 1)For IPv4: ./client 172.19.16.50 30000 Output: Please enter the message: test I got your message 2)For IPv6 ./client 2001:106:2700::1 30000 Output: ERROR, no such host Server side: ./server 30000 Client Code: #include <stdio.h> Server Code: #include <stdio.h> |
| ||
| Re: Socket programming in IPv6? You have to install and run windows xp ipv6 service package first. Also you need to use AF_INET6 ,etc in lieuf AF_INET and pass an ipv6 sturcture, read data in an ipv6 packet format. |
| ||
| Re: Socket programming in IPv6? try this hope it helps |
| ||
| Re: Socket programming in IPv6? Thanks for the quick reply. I've got the IPv6 part working now. Hope it helps others in the future =) Reference at: http://publib.boulder.ibm.com/iserie...oxoverview.htm However in my network, my clients do not know the IPv6 address of the server. Is there a way to do a broadcast to all servers in the network? I've tried entering the link-scope all-hosts multicast address, ff02::1 as the server's IP address but it couldn't work. ./Client11 ff02::1 connect() failed: Network is unreachable Thanks, KiaN |
| All times are GMT -4. The time now is 4:23 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC