Changeset 214924 in libssh2
- Timestamp:
- 02/16/10 13:14:03 (2 years ago)
- Branches:
- master
- Children:
- 72ae08
- Parents:
- a49101
- git-author:
- Peter Stuge <peter@…> (02/16/10 13:14:03)
- git-committer:
- Peter Stuge <peter@…> (02/16/10 13:21:57)
- Location:
- example
- Files:
-
- 4 edited
-
scp_write.c (modified) (1 diff)
-
sftp_RW_nonblock.c (modified) (1 diff)
-
sftp_write.c (modified) (2 diffs)
-
x11.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
example/scp_write.c
r6df87e r214924 198 198 close(sock); 199 199 #endif 200 if (local) 201 fclose(local); 200 202 fprintf(stderr, "all done\n"); 201 203 return 0; -
example/sftp_RW_nonblock.c
r6df87e r214924 284 284 close(sock); 285 285 #endif 286 if (tempstorage) 287 fclose(tempstorage); 286 288 printf("all done\n"); 287 289 return 0; -
example/sftp_write.c
r6df87e r214924 185 185 } while (1); 186 186 187 fclose(local);188 187 libssh2_sftp_close(sftp_handle); 189 188 libssh2_sftp_shutdown(sftp_session); 190 189 191 shutdown: 192 190 shutdown: 193 191 libssh2_session_disconnect(session, 194 192 "Normal Shutdown, Thank you for playing"); … … 200 198 close(sock); 201 199 #endif 202 printf("all done\n"); 200 if (local) 201 fclose(local); 202 printf("all done\n"); 203 203 return 0; 204 204 } -
example/x11.c
rb5e358 r214924 122 122 ptr = strrchr(display, ':'); 123 123 temp_buff = (char *) calloc(strlen(ptr+1), sizeof(char)); 124 if (!temp_buff) { 125 perror("calloc"); 126 return; 127 } 124 128 memcpy(temp_buff, ptr+1, strlen(ptr+1)); 125 129 display_port = atoi(temp_buff); 126 127 sock = socket(AF_UNIX,SOCK_STREAM, 0); 128 if (sock <0) 130 free(temp_buff); 131 132 sock = socket(AF_UNIX, SOCK_STREAM, 0); 133 if (sock < 0) 129 134 return; 130 135 memset(&addr, 0, sizeof(addr));
Note: See TracChangeset
for help on using the changeset viewer.
