Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int nrbytes;
- char *Usercl,*Passcl;
- if( read (tdl.cl, &nrbytes, sizeof(int)) <= 0 )
- {
- printf("[server]Thread - %dn",tdl.idThread);
- perror("Read() errorn ");
- }
- Usercl = new char[nrbytes+1];
- if( read (tdl.cl, &Usercl, sizeof(nrbytes)) <= 0 )
- {
- printf("[server]Thread - %dn",tdl.idThread);
- perror("Read() errorn ");
- }
- if( read (tdl.cl, &nrbiti, sizeof(int)) <= 0 )
- {
- printf("[server]Thread - %dn",tdl.idThread);
- perror("Read() errorn ");
- }
- Passcl = new char[nrbytes+1];
- if( read (tdl.cl, &Usercl, sizeof(nrbytes)) <= 0 )
- {
- printf("[server]Thread - %dn",tdl.idThread);
- perror("Read() errorn ");
- }
- printf("[server]Thread - %dn. User:%sn",tdl.idThread,Usercl);
- printf("[server]Thread - %dn. Pass:%sn",tdl.idThread,Passcl);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement