Bugs item #1727192, was opened at 2007-05-28 20:47 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=865514&aid=1727192&group_id=173455
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: CeGCC (arm-wince-cegcc) Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: crash025 (crash025) Assigned to: Nobody/Anonymous (nobody) Summary: Problems with bind through winsock for bluetooth Initial Comment: Using: arm-wince-cegcc-g++ (GCC) 4.1.0 Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. I've been having problems with binding to a socket for bluetooth. I've followed the MSDN documentation and examples but I keep getting the 10014 (WSAEFAULT) [something wrong with the pointer or the size argument is too small] error from SOCKADDR_BTH and bind. I get the following sizes for the structure typedef struct _SOCKADDR_BTH { USHORT addressFamily; // 2 bytes BTH_ADDR btAddr; // 8 bytes GUID serviceClassId; // 16 bytes ULONG port; // 4 bytes } SOCKADDR_BTH, *PSOCKADDR_BTH; And the structure is being reported as 32 If I remember from class correctly it is because of padding and align 4 which happens on linux. Another person on another forum is claiming that the structure should be 30 Is my winsock code off or is this an internal flaw in the compiler? To compile I'm using this line: arm-wince-cegcc-g++ -o name.exe gpstobth.cpp -lws2 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=865514&aid=1727192&group_id=173455 ------------------------------------------------------------------------- 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/ _______________________________________________ Cegcc-devel mailing list Cegcc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cegcc-devel