Search:

Type: Posts; User: ferizhandi; Keyword(s):

Page 1 of 2 1 2

Search: Search took 0.05 seconds.

  1. Replies
    3
    Views
    523

    Re: network programming

    yeah, my purpose is first approach. my problem is implementation of this approach.
    how can i listen to all client when transfer a file to one client?!
  2. Replies
    3
    Views
    523

    network programming

    i want to write a sever application.my sever have some service to client. some of the answer of my server is long(transfer file) and some of them is short(list of online client).
    when server...
  3. Replies
    8
    Views
    1,003

    Re: write in file in c?!

    my homework is programmimg of sever and client with many facilities. and in this part i want to save request of all client in log file. so at the first of sever code. i am open with O_CREAT then...
  4. Replies
    8
    Views
    1,003

    Re: write in file in c?!

    my code is lengthful, but the part of code that relate with this case exist below:



    logFileOpen=open(logFilePath,O_CREAT,0777);
    close(logFileOpen);

    and the other part:
  5. Replies
    8
    Views
    1,003

    Re: write in file in c?!

    i have to use system call function.
  6. Replies
    8
    Views
    1,003

    write in file in c?!

    i want to write in a file, so i write code thats i think correct. but not works

    logFileOpen = open(logFilePath, O_WRONLY);
    write(logFileOpen,handle,strlen(handle));

    what is wrong?!
  7. Replies
    4
    Views
    538

    Re: open file in c

    char * path = "/home/testfile";
    if(open(path,O_RDONLY,0)<0)
    write(1,"file not open",13);
  8. Replies
    4
    Views
    538

    open file in c

    i want to open a file in c with this function

    int open( char *filename, int access, int permission );

    but when file exist in other directory , i put path of file in first argument. but...
  9. Thread: struct in c

    by ferizhandi
    Replies
    4
    Views
    490

    Re: struct in c

    tanks, my problem is solved , i did a mistake.
  10. Thread: struct in c

    by ferizhandi
    Replies
    4
    Views
    490

    Re: struct in c

    because use it in condition, and works unexpectedly.
  11. Thread: struct in c

    by ferizhandi
    Replies
    4
    Views
    490

    struct in c

    i am writing a struct. but initialization not work correctly.
    what is wrong!



    typedef struct {
    int userIdNumber;
    char* userName;
    int isThere;
  12. Replies
    5
    Views
    1,053

    Re: convert uint16_t

    i want to use "write()".
  13. Replies
    5
    Views
    1,053

    convert uint16_t

    hi all

    how can i convert uint16_t to char*?!
    i want to display value of uint16_t and i don't want to use printf or ... . i want to use system call function.
  14. Replies
    2
    Views
    466

    Re: socket programming

    Tanks a lot.
  15. Replies
    2
    Views
    466

    socket programming

    hi all

    i wrote a sever with c. i put a non-terminate loop, but not work correctly.while loop not perform permanently.
    in this code, i want to if there were no person to connect, recieve message...
  16. Replies
    1
    Views
    405

    read problem in c

    hi all;

    i have run this code and the first read and write work correctly. but and the second one is missed.
    the output log is:


    freez@JALALI:~$ ./a
    salam8a
    okok2freez@JALALI:~$
  17. Replies
    2
    Views
    497

    server programing

    hi all.

    i'm student in iust university, i have operating system this season. and i have a project, i have to write client and server application that server provide some services. for example :...
  18. Thread: printf()

    by ferizhandi
    Replies
    2
    Views
    372

    printf()

    hi all,
    when i use this code without loop, printf perform correctly but when use it in loop , it does not work, what can i do?!
    example:
    this code work correctly:

    int...
  19. Replies
    2
    Views
    421

    Re: pointer to pointer in c

    thank you.
  20. Replies
    6
    Views
    587

    Re: read(2) in c

    yeah i read it , and solved my problem , tank you
  21. Replies
    2
    Views
    421

    pointer to pointer in c

    how can i implement this satement in c ?!

    const char ** instruction_set = ["connect","get-clients-list","share","get-files-list","get","remove","rename","msg","dc"];
  22. Replies
    6
    Views
    587

    Re: read(2) in c

    i have a operating system project so i can use only these functions.
  23. Replies
    6
    Views
    587

    Re: read(2) in c

    i can't use this function because i have to use system call function, but tank you.
  24. Replies
    5
    Views
    505

    Re: reference parameter in c

    i am runing this code, but when arrive to this instruction ( *var = x; ) , program stop and say this:
    Segmentation fault (core dumped)
  25. Replies
    5
    Views
    505

    Re: reference parameter in c

    yeah, but i test this instruction:
    *var =x;
    but not correct.
Results 1 to 25 of 27
Page 1 of 2 1 2