Search:

Type: Posts; User: Phoenix_Rebirth

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Huh, didn't noticed that. I went back and changed...

    Huh, didn't noticed that. I went back and changed my approach (created an extra cell so the thread with myID=1 could start from the beginning) so I added +1 to a lot of places and forgot about...
  2. Simulating a pipe using threads and condition variables

    So, this is an assignment I have for my parallel programming course. The objective of this part is to simulate pipelining a task. I have a task that is divided in 16 parts and I simulate this with a...
  3. Replies
    1
    Views
    2,328

    Deleting content from a file

    If I have a file containing some text data separated by some markers i.e '#####'
    how would I go about deleting some part lets say the third in order.

    If my file is like this

    I was thinking...
  4. Server sends unknown number of messages, client doesn't know when he stops

    So I am trying a simple server-client experiment for an exercise I have to do. I have a simple server-client model over the Internet working with tcp sockets.
    I set up the server and he starts...
  5. Replies
    5
    Views
    5,894

    Another question: If I send a udp packet to a...

    Another question:

    If I send a udp packet to a port of another host/terminal/pc usually how long does it stay there? Let's say that I have two terminal and on one I run a program that receives msgs...
  6. Sendto packets to a listening TCP socket

    I have a few questions about TCP sockets:

    1) Can you use send and recvfrom with them? I cant see any reason why not though it is redundant since you use connect to form a path between sockets.
    ...
  7. Replies
    5
    Views
    5,894

    Also is there any way to use a socket to find out...

    Also is there any way to use a socket to find out on what ports someone is trying to connect;
    I am trying to make a simple port knocking program thingy and I can't decide whether to listen to all...
  8. Replies
    5
    Views
    5,894

    Udp Sockets: ports and bind

    I was wondering, why must I bind a udp socket. If I remember correctly with udp sockets you specify the ip address and port when you sendto messages and with recvfrom you have these details stored in...
  9. Ahhhh, yes you are right.. Thanks

    Ahhhh, yes you are right.. Thanks
  10. I cant understand something in my server/client with sockets and fork

    hey... This is not a problem per se, I am just curious just what I am doing wrong or if is something in the way things work and I dont know it
    So I am making a simple server/client using sockets...
  11. Yeah, basically you have a head pointer and you...

    Yeah, basically you have a head pointer and you continually add items. So when you add them you go to the last node in you list and assign to the ptrnext the address of the new node to be added while...
  12. Replies
    21
    Views
    11,695

    Have you done anything? Do you have any idea and...

    Have you done anything? Do you have any idea and you are stuck? You ve got to give us something to work with.
    Obviously you must use a sort algorithm. Do you have something specific in mind?

    How...
  13. The file system will support certain number of...

    The file system will support certain number of files and the file name will also have a limited length. Free space will be managed by a file allocation table and will have to hand over an API, a...
  14. Some (Much) help for implementing a flat filesystem

    So I have to implement a flat file system for an assignment I have where I have to make a shell of some kind in which the user has some functions he can use for creating and managing a file system. I...
  15. Replies
    13
    Views
    1,483

    If I may comment. I think this is correcter (is...

    If I may comment. I think this is correcter (is there such word ! )



    int split_cmd(char *cmd_linePtr, char **argumentsPtr)
    {
    static const char *seps = " \t\n";
    int no_arg = 0;

    char...
  16. Ok thanks,

    Ok thanks,
  17. Replies
    13
    Views
    1,483

    Wow, thanks Mats... I still got a long way to...

    Wow, thanks Mats... I still got a long way to go... :(
    Thanks for all the help guys
  18. Quick Question: 2D Array with char **

    Quick Question
    I have some functions who take as parameters an int and and a char **. Basically the work in the same line of thought as main in c. I pass the number of arguments and the arguments...
  19. Replies
    13
    Views
    1,483

    Ahh, thanks for clearing it to me. It had seem...

    Ahh, thanks for clearing it to me. It had seem strange to me if it worked like I thought it did.
  20. Replies
    13
    Views
    1,483

    Well I thought of using strtok of course but...

    Well I thought of using strtok of course but strtok returns pointers to the start of the tokens right? So that means the first token will have all the line the second all the command line except the...
  21. Replies
    13
    Views
    1,483

    thanks matsp, you ve made some interesting points...

    thanks matsp, you ve made some interesting points

    On the subject of external declaring, I am aware it and I tried it but I had some problems. Basically what you say is create the table inside the...
  22. Replies
    13
    Views
    1,483

    So I was trying to make a very primitive...

    So I was trying to make a very primitive kind-of-shell and I ended ip doing the follow. I just want an opinion
    This is my header where I declare the available funtions and make an array of structs...
  23. Replies
    6
    Views
    12,139

    Well that what I thought but you see I had some...

    Well that what I thought but you see I had some code from some guy and I got confused because he had written all the code in two c files and the he included in one of the c files the other c file and...
  24. Replies
    6
    Views
    12,139

    I have a question on what you said here. So I...

    I have a question on what you said here. So I have a header file in which I declare some global structs and variables and also have about 10 funtions - their declaration only. That means 10 c files...
  25. Replies
    4
    Views
    1,485

    Oh... Okay, Yes I see. (feeling a little dumb)...

    Oh... Okay, Yes I see. (feeling a little dumb) Thanks zacs7
Results 1 to 25 of 67
Page 1 of 3 1 2 3