I have a big request to you. The current stage of my project is to implement a Real-Time streaming Client/Server application with IPv6 support in it. Therefore, I am using a Darwin Streaming Server as a basis. And trying to to modify the source code, and doing a convertion from IPv4 stack to IPv6 (dual stack), and porting the application to the IPv6 APIs. I have a big problem now with Sockets. Here I have attached 2 main socket files (Socket.cpp, Socket.h), and a error log file. I have changed all the names of the data stractures and its members, function calls etc. So, as a metter of fact I think there is no need for more changes to be done there, according to other IPv6 API examples. But anyway, during the compilation I am receiving very strange errors, that I have no clue how to deal with (already 2 weeks). Please if you find time have a look at it. I hope to get your suggestions on what I could do about it. Thanks in advance, Bahrom. <<error_log.txt>> <<Socket.cpp>> <<Socket.h>>
Darwin Streaming Server
-----------------------
Configuring for the FreeBSD i386 platform
Building for FreeBSD.i386 with gcc
Building CommonUtilitiesLib for FreeBSD.i386 with gcc
gcc -c -o Socket.o -include ../PlatformHeader.h -g -Wall -O3 -I. -I.. Socket.cpp
In file included from Socket.cpp:47:
Socket.h: In method `UInt32 Socket::GetLocalAddr()':
Socket.h:94: initialization to `u_long' from `unsigned char *' lacks a cast
Socket.cpp: In method `Socket::Socket(Task *, long unsigned int)':
Socket.cpp:61: incompatible types in assignment of `int' to `unsigned char[16]'
Socket.cpp:64: incompatible types in assignment of `int' to `unsigned char[16]'
Socket.cpp: In method `OS_Error Socket::Bind(long unsigned int, short unsigned int)':
Socket.cpp:133: incompatible types in assignment of `u_long' to `unsigned char[16]'
Socket.cpp:140: incompatible types in assignment of `int' to `unsigned char[16]'
Socket.cpp: In method `class StrPtrLen * Socket::GetLocalAddrStr()':
Socket.cpp:156: initialization to `u_long' from `unsigned char *' lacks a cast
Socket.cpp: In method `class StrPtrLen * Socket::GetLocalDNSStr()':
Socket.cpp:170: syntax error before `{'
Socket.cpp:175: initialization to `u_long' from `unsigned char *' lacks a cast
*** Error code 1
Attachment:
Socket.cpp
Description: Binary data
Attachment:
Socket.h
Description: Binary data