006
09.05.2003, 13:56 Uhr
typecast
aka loddab (Operator)
|
OK hier ein Ausschnitt
Code: |
... int s = socket(PF_LOCAL, SOCK_STREAM, 0); struct hostent *R; struct sockaddr_in h; R = gethostbyname("obelix");
bcopy(R->h_addr, &h.sin_addr, R->h_length); h.sin_port = 81; if (-1 == connect(s, (struct sockaddr*) &h, sizeof(h))) { cout << strerror(errno) << endl; } ...
|
Fehlermeldung: No such file or directory -- All parts should go together without forcing. ... By all means, do not use a hammer. (IBM maintenance manual, 1925) |