From: Sridhar S. <sr...@us...> - 2003-11-10 18:46:44
|
On Mon, 10 Nov 2003 sc...@co... wrote: > > Hello, > I am having troubles with the sendmsg system call. Unfortunately, my system call never returns so I don't get an errno or return value. > > if((ret=sendmsg(sockfd, &msgs,0)) < 0){ > printf("DEBUG: return value is %d \n", ret); > printf("DEBUG: sendmsg errno: %d\n", errno); > printf("Error during initiate_assoc with errno %d \n", errno); > return (ret); > } printf("DEBUG - End iniatiate of associatio\n"); > > Similar code works on a unix platform, but not on this 64-bit linux platform. I am looking for example code or documention with sample code so I can verify my syntax and that I am performing all the necessary preliminary steps. What do you mean by unix platform? Is it a 32-bit m/c running Linux or any other Unix OS? What is the processor on your 64-bit platform? Is it ia64, ppc64 or some other architecture? It will be helpful if you provide the source code preceeding the sendmsg() call including the msgs initialization and socket(), bind() calls. You can find example test programs in the lksctp-tools package available on the sourceforge website at http://sourceforge.net/project/showfiles.php?group_id=26529 Look for sample code in src/func_tests and src/apps directories. Thanks Sridhar |