/** * Create a LocalServerSocket from a file descriptor that's already been created and bound. * listen() will be called immediately on it. Used for cases where file descriptors are passed in * via environment variables * * @param fd bound file descriptor * @throws IOException */ @DSGenerator( tool_name = "Doppelganger", tool_version = "2.0", generated_on = "2013-12-30 12:36:07.241 -0500", hash_original_method = "40EEF7A0A264136F662D7E1DA715A559", hash_generated_method = "73B4F21232108BF5282CD85457539E41") public LocalServerSocket(FileDescriptor fd) throws IOException { impl = new LocalSocketImpl(fd); impl.listen(LISTEN_BACKLOG); localAddress = impl.getSockAddress(); }
/** * Crewates a new server socket listening at specified name. On the Android platform, the name is * created in the Linux abstract namespace (instead of on the filesystem). * * @param name address for socket * @throws IOException */ @DSGenerator( tool_name = "Doppelganger", tool_version = "2.0", generated_on = "2013-12-30 12:36:07.239 -0500", hash_original_method = "84F635671A3C26E6B4F1228C3E17A491", hash_generated_method = "544C09CA031344D5713194550EB2CB9D") public LocalServerSocket(String name) throws IOException { impl = new LocalSocketImpl(); impl.create(true); localAddress = new LocalSocketAddress(name); impl.bind(localAddress); impl.listen(LISTEN_BACKLOG); }