Search:

Type: Posts; User: zmhnak

Search: Search took 0.00 seconds.

  1. file existence check and ask if aleady exist to make another file name

    Hi...
    i have this code to check if file exist already and its work,
    but what i need is : is to add feature to function to see if the file already exist open same file and rename it with another...
  2. Replies
    4
    Views
    5,256

    Replay... with new code

    this is modification but the same problem it stucks @ getchar() or scanf(), again after inserting any char except 'y' ,promting it for new input ,after it stuck if the user insert any new char it...
  3. Replies
    4
    Views
    5,256

    stuck on scanf ?????

    Hi...
    i program signal handler like this ?



    void
    sig_quit(int signo)
    {
    char ans[5];
    int check = 0;
  4. Implement Signal() using sigaction() in ubuntu

    Hi...
    Im programming client/server app that client provide the file name then the server send it to client then the client will save it ..

    so i want to make signal handler to handle zombie...
  5. ok i know this my frnd,but give me an example in...

    ok i know this my frnd,but give me an example in "code"to illstrate this please? using open func()
  6. Return the errno from open func. and print it to screen

    Hi...
    i am programming Cli/Ser ,so part of the program is to open file to download it from client side,but i want to return the global value Errorno to print it to screen , and how to use strerror()...
  7. Replies
    5
    Views
    5,511

    i want the values like this in octal 755 .......

    i want the values like this in octal 755 .......
  8. Replies
    5
    Views
    5,511

    Writing Garbage data to file ???

    Hi...
    Im programming client/server app that client provide the file name then the server send it to client then the client will save it ..

    this is part of code in client


    char buffer[1024];...
  9. reading from file and save it to another file in server client app ??

    I am programming Cli/Serv app in c that the cli enter the file name of file then the server check up if the file exist @ server then the client can download it so this is part of code for server...
  10. really sorry ,but while im writing the browser...

    really sorry ,but while im writing the browser crashed,so i repeat the post again , i dont think the post was upload .

    Sorry again.
  11. Replies
    1
    Views
    2,053

    Error to define data type File* ????

    Hi...

    I prgoram unix sokcet programming , and part of my code is ti open file from server and open it , but i surrpised with this wierd error i dont have any reason for it ?



    #include...
  12. Data type File * not supported in c under linux ??????

    Hi...
    i am working on socket network programming ,and part of code is to open file from server and download it , but i surrpised with this wired error ,but keep in mind i had include the Header...
  13. Replies
    4
    Views
    4,332

    u mean by no & here :the error is here

    u mean by no & here :the error is here
  14. Replies
    4
    Views
    4,332

    when this code excute it does not have any error...

    when this code excute it does not have any error



    printf("File exist in server.\n");
    state=1;
    bzero(&buffer,sizeof(buffer));
    buffer[0]=state;
  15. Replies
    4
    Views
    4,332

    Assignig unint-8 to char buffer[1024] ???

    Hi...
    i am working on socket programming in c

    so i define



    int listenfd,connfd,portno,stringlen;
    socklen_t clilen;
    char buffer[1024];
  16. Really really thanks i have no idea how i forgot...

    Really really thanks i have no idea how i forgot this info :wink:

    thnx,
  17. Assignig string to array and compare it....???

    i have this code :



    #include <errno.h>
    #include <stdio.h>
    #include <sys/types.h>
    #include <sys/socket.h>
    #include <netinet/in.h>
    #include <arpa/inet.h>
  18. Netstat and ps commands for client/server socket programming

    Hi...
    i made client server program with fork ,without using signal handler
    because i want to see the stutus zombie for parent server,but when i excute "ps" command i didn't see anything for...
  19. Replies
    2
    Views
    1,585

    Thnx very muvch for your replay... i will try...

    Thnx very muvch for your replay...
    i will try your advice and tell you what will happen...
  20. Replies
    2
    Views
    1,585

    socket programming

    Hi ...

    i made client/server program in that the client send strings to server ,then the server send it back to the server the length of the string that entered by the client ,so i added feature as...
Results 1 to 20 of 20