+
+ // Set remote port and address
+ ioctl(fd, 5, &PortNumber);
+ ioctl(fd, 6, addrBuffer);
+
+ // Connect
+ if( ioctl(fd, 7, NULL) == 0 ) {
+ fprintf(stderr, "Unable to start connection\n");
+ return -1;
+ }
+
+ printf("Connection opened\n");
+
+ // Return descriptor
+ return fd;