Ich bin nicht in der Lage, die QT-Dokumentationsseite zu finden, die in <sys/socket.h>
Dokumentationsseite für qt connect()
Grund:
int err = connect(sockfd,(struct sockaddr *) &serv_addr,sizeof(serv_addr));
-1 zurück,
socket.h file:
/* Open a connection on socket FD to peer at ADDR (which LEN bytes long).
For connectionless socket types, just set the default address to send to
and the only address from which to accept transmissions.
Return 0 on success, -1 for errors.
This function is a cancellation point and therefore not marked with
__THROW. */
extern int connect (int __fd, __CONST_SOCKADDR_ARG __addr, socklen_t __len);
Welche Doc-Seite gibt Informationen über warum Diese Verbindung schlägt fehl?
Ist es eine QT-Datei ''? –
@BenceKaulics Ja, aber die Suche nach der Datei in der Doc-Seite ergibt nichts – KGCybeX
http://pubs.opengroup.org/onlinepubs/7908799/xns/connect.html –