Hi,
In my implementation for contentsOfDirectoryAtPath, I create a network
socket and it fails to connect. Is there a policy on macfuse code that
it isn't allowed to create network sockets?
My socket connection is straight forward...
memset( conn->sa.sin_zero , 0 , sizeof(conn->sa.sin_zero) );
conn->sa.sin_family = AF_INET;
conn->sa.sin_port = htons(conn->left_opts->port);
conn->sa.sin_addr.s_addr = inet_addr( conn->left_opts->host );
conn->addressSize = sizeof(conn->sa);
/* connect */
conn->sock = socket( AF_INET, SOCK_STREAM, 0 );
if ( conn->sock <= 0 ){
return conn_no_socket;
}
if ( connect( conn->sock , (struct sockaddr*)&conn->sa , conn-
>addressSize ) ){
return conn_fail;
}
I am able to connect using other means outside of macfuse framework.
Thanks
Hasan
--
You received this message because you are subscribed to the Google Groups
"MacFUSE" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/macfuse?hl=en.