Search:

Type: Posts; User: ueg1990

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    10
    Views
    1,383

    so can do something like this: typedef...

    so can do something like this:



    typedef struct {
    char buff[102400];
    int length;
    int fd;
    } Block;
  2. Replies
    10
    Views
    1,383

    hey, i am trying to implement the function...

    hey, i am trying to implement the function nfs_write(int fd, char* buff, int length) for my network file system. This function is supposed to write bytes to the file and return the number of bytes ...
  3. Replies
    10
    Views
    1,383

    i) so i shud create a struct on the client side...

    i) so i shud create a struct on the client side which will keep track of all the file descriptors for each file in the server side??

    ii) also, one of the requirements of the assign is: "You must...
  4. Replies
    10
    Views
    1,383

    hello dmh2000, another quick ques....for...

    hello dmh2000, another quick ques....for functions like nfs_close, nfs_write and nfs_read, the only info i have to identify which file to close, write or read is the file descriptor. does that mean...
  5. Replies
    10
    Views
    1,383

    u r too awesome!!! thank u!!!! and that sequence ...

    u r too awesome!!! thank u!!!! and that sequence u predicted was spot on!!!! :D
  6. Replies
    10
    Views
    1,383

    hello dmh2000, thnx for the reply!! i am stuck in...

    hello dmh2000, thnx for the reply!! i am stuck in another function but only bcuz im not sure what is the expected result. the function is nfs_open(char *filesys, char *name) which opens the given...
  7. Replies
    10
    Views
    1,383

    network file system

    i am trying to implement a network file system as part of an assign in C: the file system is on the server side and i have to send commands from the client side.

    i have implemented my client and...
  8. Thread: pointers

    by ueg1990
    Replies
    5
    Views
    1,096

    thnx alot guys.....that was really helpful!!!!

    thnx alot guys.....that was really helpful!!!!
  9. Thread: pointers

    by ueg1990
    Replies
    5
    Views
    1,096

    pointers

    hello,

    i know its a basic question on pointers/malloc , but i wud still like if u can explain y in the following code we need to allocate memory to str2 and str3 be4 using strcpy and memcpy??

    ...
  10. Replies
    3
    Views
    1,468

    why will it be a hard time integrating select and...

    why will it be a hard time integrating select and poll??
    also, i used fork() to enable full duplex communication....is that ok too?? or is the select/poll method a better solution??
  11. Replies
    3
    Views
    1,468

    here is my code. this is the farthest i have...

    here is my code. this is the farthest i have reached. i just want to now figure out full duplex btw client and server like chatting

    Client:



    #include <stdio.h>
    #include <stdlib.h>...
  12. Replies
    3
    Views
    1,468

    cannot establish two way communication

    hello, i am trying to implement a client and server program. i have managed to establish one way communication btw client and server where server can continuously receive messages from client until...
  13. Replies
    3
    Views
    1,135

    if the file descriptor that we get from accept is...

    if the file descriptor that we get from accept is for a new connection, then whats the use of the file descriptor from socket()? is it only for associating it to a specific socket??
  14. Replies
    3
    Views
    1,135

    socket file descriptors

    one quick ques abt the server side in client/server implementation: there are two file descriptors....is it important to closr both file descriptors when closing the connection??
  15. yes, that was the mistake!!! thnx alot!! i am...

    yes, that was the mistake!!! thnx alot!!
    i am able to now send and receive messages but only one at a time!!
    how can i maintain a continuous connection?? so that if i send anything via client the...
  16. since i am running both client and server on same...

    since i am running both client and server on same machine, i run my program as:

    for server:
    gcc -o server ue_server.c
    ./server

    for client:

    gcc -o client ue_client.c
    ./client 127.0.0.1
  17. i did that but still no result. the error i am...

    i did that but still no result.

    the error i am getting is on server side:

    recv: Socket operation on non-socket

    any other suggestions?? i am only one step away from establishing my...
  18. not receiving messages in server/client program

    hello,

    i am trying to implement a tcp client and tcp server. i am able to establish the connection but when i send a message from client, the server is not able to receive it. here is my code...
  19. Replies
    4
    Views
    27,103

    nope, i am in the linux world right now!! :) ...

    nope, i am in the linux world right now!! :)

    just one ques: i want to implement a client and server program and want to run client and server one two separate computers. will this loopback address...
  20. Replies
    4
    Views
    27,103

    so is there any other way of getting my actual ip...

    so is there any other way of getting my actual ip address from my code?? i do not know what i am missing!!
  21. Replies
    4
    Views
    27,103

    ip address using getaddrinfo()

    hello,

    i was able to get ip address using gethostname and gethostbyname functions but since they are now superseded by getaddrinfo() i wanted to get ip address using this function.

    here is my...
  22. i have the exact same ques as surajkaul w,r,t to...

    i have the exact same ques as surajkaul w,r,t to coding. except i was considering Java instead of C++.....advice from the programming experts wud be really appreciated!!!
  23. Thread: memcpy

    by ueg1990
    Replies
    3
    Views
    2,141

    memcpy

    hello,
    can u explain what memcpy() does?
    and what is the difference btw memcpy() and memset()?
  24. Replies
    6
    Views
    4,329

    oh ok...thnx!! btw nice quote!!!

    oh ok...thnx!!

    btw nice quote!!!
  25. Replies
    6
    Views
    4,329

    So, if we do not malloc, it will not copy from s...

    So, if we do not malloc, it will not copy from s to p?
Results 1 to 25 of 38
Page 1 of 2 1 2