передача больших(~3-5Tb) файлов по сети
Хотелось бы услашать советы в реализации передача(upload) больших(~3-5Tb) файлов по сети с возможностью докачки.
Хотелось бы услашать советы в реализации передача(upload) больших(~3-5Tb) файлов по сети с возможностью докачки.
Добрый день. Пишу курсовую по биоинформатике. Хотел для себя почитать про алгоритмы сравнения геномов но кроме множественного выравнивания(multiple alligment)(модификации этого алгоритма не учитывал в счете) ничего не нашел. Может есть тут специалисты в этой области? Заранее спасибо за ответ.
Перемещено hibou из General
Имеется CentOS Linux release 6.0 (Final) необходимо поставить wine. при yum install wine вылазит
Transaction Check Error:
package tcp_wrappers-libs-7.6-57.el5.rfx.x86_64 (which is newer than tcp_wrappers-libs-7.6-56.3.el6.i686) is already installed
package krb5-libs-1.8.2-3.el6_0.7.x86_64 (which is newer than krb5-libs-1.8.2-3.el6.i686) is already installed
package libtiff-3.9.4-1.el6_0.3.x86_64 (which is newer than libtiff-3.9.4-1.el6.i686) is already installed
package openssl-1.0.0-4.el6_0.2.x86_64 (which is newer than openssl-1.0.0-4.el6.i686) is already installed
package cups-libs-1:1.4.2-35.el6_0.1.x86_64 (which is newer than cups-libs-1:1.4.2-35.el6.i686) is already installed
package dbus-libs-1:1.2.24-4.el6_0.x86_64 (which is newer than dbus-libs-1:1.2.24-3.el6.i686) is already installed
package pixman-0.18.4-1.el6_0.1.x86_64 (which is newer than pixman-0.16.6-1.el6.i686) is already installed
package openldap-2.4.19-15.el6_0.2.x86_64 (which is newer than openldap-2.4.19-15.el6.i686) is already installed
package pango-1.28.1-3.el6_0.5.x86_64 (which is newer than pango-1.28.1-3.el6.i686) is already installed
file /usr/share/man/man1/ciphers.1ssl.gz from install of openssl-1.0.0-4.el6.i686 conflicts with file from package openssl-1.0.0-4.el6_0.2.x86_64
file /usr/share/man/man1/cms.1ssl.gz from install of openssl-1.0.0-4.el6.i686 conflicts with file from package openssl-1.0.0-4.el6_0.2.x86_64
file /usr/share/man/man1/openssl.1ssl.gz from install of openssl-1.0.0-4.el6.i686 conflicts with file from package openssl-1.0.0-4.el6_0.2.x86_64
file /usr/share/man/man1/smime.1ssl.gz from install of openssl-1.0.0-4.el6.i686 conflicts with file from package openssl-1.0.0-4.el6_0.2.x86_64
file /usr/share/doc/tcp_wrappers-libs-7.6/README from install of tcp_wrappers-libs-7.6-56.3.el6.i686 conflicts with file from package tcp_wrappers-libs-7.6-57.el5.rfx.x86_64
file /usr/share/doc/tcp_wrappers-libs-7.6/BLURB from install of tcp_wrappers-libs-7.6-56.3.el6.i686 conflicts with file from package tcp_wrappers-libs-7.6-57.el5.rfx.x86_64
file /usr/share/doc/tcp_wrappers-libs-7.6/Banners.Makefile from install of tcp_wrappers-libs-7.6-56.3.el6.i686 conflicts with file from package tcp_wrappers-libs-7.6-57.el5.rfx.x86_64
file /usr/share/doc/tcp_wrappers-libs-7.6/CHANGES from install of tcp_wrappers-libs-7.6-56.3.el6.i686 conflicts with file from package tcp_wrappers-libs-7.6-57.el5.rfx.x86_64
file /usr/share/doc/tcp_wrappers-libs-7.6/DISCLAIMER from install of tcp_wrappers-libs-7.6-56.3.el6.i686 conflicts with file from package tcp_wrappers-libs-7.6-57.el5.rfx.x86_64
file /usr/share/doc/tcp_wrappers-libs-7.6/README.IRIX from install of tcp_wrappers-libs-7.6-56.3.el6.i686 conflicts with file from package tcp_wrappers-libs-7.6-57.el5.rfx.x86_64
file /usr/share/doc/tcp_wrappers-libs-7.6/README.NIS from install of tcp_wrappers-libs-7.6-56.3.el6.i686 conflicts with file from package tcp_wrappers-libs-7.6-57.el5.rfx.x86_64
file /usr/share/man/man5/hosts_access.5.gz from install of tcp_wrappers-libs-7.6-56.3.el6.i686 conflicts with file from package tcp_wrappers-libs-7.6-57.el5.rfx.x86_64
file /usr/share/man/man5/hosts_options.5.gz from install of tcp_wrappers-libs-7.6-56.3.el6.i686 conflicts with file from package tcp_wrappers-libs-7.6-57.el5.rfx.x86_64
переустанавливаю mysql на CentOS 6
Transaction Check Error:
file /usr/lib64/mysql/libmysqlclient.so.16.0.0 from install of mysql-libs-5.1.47-4.el6.x86_64 conflicts with file from package compat-mysql51-5.1.54-1.el6.remi.x86_64
file /usr/lib64/mysql/libmysqlclient_r.so.16.0.0 from install of mysql-libs-5.1.47-4.el6.x86_64 conflicts with file from package compat-mysql51-5.1.54-1.el6.remi.x86_64
Package(s) mysql-libs available, but not installed.
Добрый день всем. Купил выделенный сервер для своих нужд. Стоит CentOS-60-64-minimal доставил X-Ы и гном..настроил VNC захожу по удаленке и вместо любых букв в системе квадраты. Подскажите что можно сделать ?
решил написать свой класс для работы с сокетами... вот в чем проблема объявил класс Sokcet в нем методы Listen Send Recv и т п)) а при вызове этих метов он ругается вот таким образом
server.cpp: In function ‘int main(int, char**)’:
server.cpp:20: error: request for member ‘Listen’ in ‘servId’, which is of non-class type ‘Socket()’
server.cpp:24: error: request for member ‘Accept’ in ‘servId’, which is of non-class type ‘Socket()’
server.cpp:28: error: request for member ‘Recv’ in ‘servId’, which is of non-class type ‘Socket()’
server.cpp:33: error: request for member ‘Send’ in ‘servId’, which is of non-class type ‘Socket()’
server.cpp:35: error: request for member ‘Recv’ in ‘servId’, which is of non-class type ‘Socket()’
#include "socets.h"
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <string.h> //for memset
#include <arpa/inet.h> // for inet_addr
using namespace std;
int main(int argc,char ** argv)
{
char *recved, *tosend;
recved = new char[1024];
tosend = new char[1024];
try{
Socket servId();
servId.Listen();
while(true)
{
struct sockaddr_in clnt_addr;
int clientsock=servId.Accept(clnt_addr);
if (clientsock>0) printf("CLIENT ACCEPTED\n");
else {printf("CLIENT NOT ACCEPTED\n"); throw 4;}
memset(&recved,0,sizeof(recved));
int bytesrecv=servId.Recv(recved,clientsock);
while (bytesrecv>0)
{
printf("input message you want ot send to %s: ", inet_ntoa(clnt_addr.sin_addr));
gets(tosend);
servId.Send(tosend);
memset(&recved,0,sizeof(recved));
bytesrecv=servId.Recv(recved,clientsock);
printf("message you recived from server%s: %s ", inet_ntoa(clnt_addr.sin_addr),recved);
}
}
}catch(int code)
{
switch(code)
{
case 1 :{ fprintf(stderr,"error creating socket......\n"); break;}
case 2 :{ fprintf(stderr,"error listening sockets......\n"); break;}
case 3 :{ fprintf(stderr,"error accepting client......\n"); break;}
case 4 :{ fprintf(stderr,"error accepting connection......\n"); break;}
case 5 :{ fprintf(stderr,"error sending message......\n"); break;}
case 6 :{ fprintf(stderr,"error accepting message......\n"); break;}
}
}
return 0;
}
socets.h
#include <netinet/in.h>
#define IP AF_INET
#define nubconect 5
class Socket
{
public:
int socketID;
int port;
struct sockaddr_in own_addr;
Socket();
Socket(char *ip);
~Socket();
void Listen();
int Accept(struct sockaddr_in &member_adr);
void Connect(int soc_to_connect);
void Send(char * tosend);
int Recv(char * torecv, int sock);
private:
int port_num_gen(void);
};
нужно написать свой cd все работает прога гулят по папочкам тока вот почему-то stdout кудато делся...
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/stat.h>
#include <fcntl.h>
void detect_curpath(char* curpath);
int isdir(char* pathtogo,char* curpath);
void add(char* s1, char* s2);
int main()
{
int out=dup(1);
char* curpath;
curpath=(char*)malloc(sizeof(char)*1024);
detect_curpath(curpath);
dup2(out,1);
printf("%s :",curpath);
char pathtogo[256];
gets(pathtogo);
while (strcmp(pathtogo,"exit"))
{
if (strlen(pathtogo)!=0)
{
int out=dup(STDOUT_FILENO);
int i=strlen(curpath)-1;
if (!strcmp(pathtogo,".."))
{
while (curpath[i]!='/')
{
curpath[i]='\0';
i--;
}
curpath[i]='\0';
}
else
if (pathtogo[0]=='/') {if (isdir(pathtogo,curpath)==1) strcpy(curpath,pathtogo);else printf("Error : Not a Directory\n");}
else {if (isdir(pathtogo,curpath)==1) add(curpath,pathtogo); else printf("Error : Not a Directory\n");}
dup2(out,STDOUT_FILENO);
}
fprintf(stdout,"%s :",curpath);
gets(pathtogo);
}
return 0;
}
void add(char* s1, char* s2)
{
int i,len1=strlen(s1);
s1[len1]='/';
for (i=0;i<strlen(s2);i++)
{
s1[len1+i+1]=s2[i];
}
}
int isdir(char* pathtogo,char* curpath)
{
int out=dup(STDOUT_FILENO);
char tmp[1024]="";
strcpy(tmp,curpath);
add(tmp,pathtogo);
freopen("tmp","w",stdout);
if (fork()==0)
{
char *cmd[]={"stat","--printf=%F",tmp,(char*)0};
execvp(cmd[0],cmd);
}
wait(getppid());
dup2(out,STDOUT_FILENO);
int stdIn=dup(STDIN_FILENO);
freopen("tmp","r",stdin);
char* type;
type=(char*)malloc(sizeof(char)*1024);
gets(type);
dup2(stdIn,STDIN_FILENO);
if (fork()==0)
{
char *ncmd[]={"rm","tmp",(char*)0};
execvp(ncmd[0],ncmd);
}
wait(getppid());
if (!strcmp(type,"Каталог")) return 1; else return 0;
}
void detect_curpath(char* curpath)
{
int out=dup(STDOUT_FILENO);
freopen("tmp","w",stdout);
if (fork()==0)
{
char *cmd[]={"pwd",(char*)0};
execvp(cmd[0],cmd);
}
wait(getppid());
dup2(out,STDOUT_FILENO);
int stdIn=dup(STDIN_FILENO);
int fd=open("tmp",O_RDONLY);
dup2(fd,STDIN_FILENO);
gets(curpath);
dup2(stdIn,STDIN_FILENO);
if (fork()==0)
{
char *ncmd[]={"rm","tmp",(char*)0};
execvp(ncmd[0],ncmd);
}
wait(getppid());
}
насчет в файл все понятно либо freopen(...) либо fopen(..) dup2(..) а вот обратно как??? если кто знает подскажите пожалуйста...