Adam Zhang wrote:

> We met a very strange behavior of accept(3socket) and
> getsockopt(3socket) in our ISV program that uses TCP Stream socket and
> is based on Solaris 9 + Tuxedo 8.1 + Sun Studio 11.
> - After the accept function, we can't get the client's ip address, even
> we call the getpeername. But we can still use this socket to communicate.


Do you mean that the second argument passed to accept() returns
nothing?


> - For the getsockopt function, it can't get the value with SO_SNDBUF
> while the program can set setsockopt with SO_SNDBUF. The errno will be
> set to EINVAL after calling getsockopt
> and we check the arguments by using the dbx.


So what are being passed to getsockopt()?


> But if we write a simple client + server socket sample to test these
> functions, it all succeed and we can get the information. Both Solaris
> and Sun Studio are fully patched.
> Does anyone have any idea about it?


Program error?  Unless we can get more info, this is the likely
issue.



-- 

                                                K. Poon.
                                                [EMAIL PROTECTED]

_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to