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...
Type: Posts; User: Phoenix_Rebirth
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...
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...
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...
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...
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...
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.
...
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...
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...
Ahhhh, yes you are right.. Thanks
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...
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...
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...
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...
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...
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...
Ok thanks,
Wow, thanks Mats... I still got a long way to go... :(
Thanks for all the help guys
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...
Ahh, thanks for clearing it to me. It had seem strange to me if it worked like I thought it did.
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...
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...
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...
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...
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...
Oh... Okay, Yes I see. (feeling a little dumb) Thanks zacs7