#endif /* STANDARD_625 */
char shell_str[ ] = “\0guest\0guest”;/* rsh */
int openSession(char *service, char *host)
{
struct sockaddr_in
skt;
struct servent
*rshell_service;
struct hostent
*diskus;
int
sd;
int
err;
if((rshell_service = getservbyname(service,
“tcp”)) == NULL) {
fprintf(stderr, “mycp: tcp: unknown
service\n”);
exit(1);
}
if((diskus = gethostbyname(host)) == NULL) {
fprintf(stderr, “mycp: %s : unknown host\n”,
host);
exit(1);
}
if((sd = socket(AF_INET, SOCK_STREAM, 0)) <0)
{
perror(“mycp: socket”);
exit(3);
}
File Formats
Diskus Technical Guide
12-28
Appendix
9100-0217-02 - SEP 95
Summary of Contents for Diskus
Page 1: ...Diskus Digital Disk Recorder Manual ...
Page 477: ...NOTES Diskus Operations Index 9100 0217 02 SEP 95 Index xvii ...
Page 478: ...NOTES Index Diskus Operations xviii Index 9100 0217 02 SEP 95 ...
Page 479: ...NOTES Diskus Operations Index 9100 0217 02 SEP 95 Index xix ...
Page 480: ...NOTES Index Diskus Operations xx Index 9100 0217 02 SEP 95 ...