public static synchronized Socket opensocket(int i) throws IOException {
		for (Signlink.socketreq = i; Signlink.socketreq != 0;) {
			try {
				Thread.sleep(50L);
			} catch (Exception exception) {
			}
		}
		if (Signlink.socket == null) {
			throw new IOException("could not open socket");
		} else {
			return Signlink.socket;
		}
	}