public static FileDescriptor createSocket() throws IOException {
  if (!isSupported)   throw new UnsupportedOperationException("SDP not supported on this platform");
  int fdVal=create0();
  FileDescriptor fd=new FileDescriptor();
  fdAccess.set(fd,fdVal);
  return fd;
}

public static FileDescriptor createSocket ( ) throws IOException { if ( ! isSupported ) throw new UnsupportedOperationException ( "SDP not supported on this platform" ) ; int fdVal = create0 ( ) ; FileDescriptor fd = new FileDescriptor ( ) ; fdAccess . set ( fd , fdVal ) ; return fd ; }
creates a sdp socket , returning file descriptor referencing the socket .
