Forum: C++ Jul 27th, 2008 |
| Replies: 6 Views: 1,036 Ok..Thank for your instruction. However, still one more thing, can you let me know the reason why, the client do not always receive full of messages from the server? (I need the messages come out in... |
Forum: C++ Jul 27th, 2008 |
| Replies: 6 Views: 1,036 Also, I can't get you at this point :
send(new_fd, "Menu\n", 5, 0)
0, 1, 2, 3, 4 are also valid return results. You can't just assume that if it wasn't an error (-1), that the only other possible... |
Forum: C++ Jul 27th, 2008 |
| Replies: 6 Views: 1,036 Ok...I show you the full code of client.
#define PORT 3490 // the port client will be connecting to
#define MAXDATASIZE 100 // max number of bytes we can get at once
int main(int argc,... |
Forum: C++ Jul 27th, 2008 |
| Replies: 6 Views: 1,036 Hi everyone!
I'm doing my project related to socket programming. The send and receive part I got problem.
The code is below :
Server side:
printf("Handling client... |
Forum: C++ Jul 22nd, 2008 |
| Replies: 6 Views: 4,680 Ok, I'll try this. If any problem I'll ask again. Hope you not feel annoyed.:)
Now I have another part need to solve. Sorry for this, just because my project requires quite a lot of parts.
This... |
Forum: C++ Jul 21st, 2008 |
| Replies: 6 Views: 4,680 Ok. Thank for your link. But I got error while compiling the example program :
In function `main':
extProg.cpp:(.text+0x147): undefined reference to... |
Forum: C++ Jul 21st, 2008 |
| Replies: 6 Views: 4,680 Ah, I forgot to write this ( will be clearer). The external program is also in C++ (.cpp). I want to call it from a parent C++ file. |
Forum: C++ Jul 21st, 2008 |
| Replies: 6 Views: 4,680 Hi everyone!
I want to call a child program from my parent program. Are there any methods to do this in C++ (platform is Linux)? I searched Google but the material found quite difficult to... |
Forum: C++ Jul 21st, 2008 |
| Replies: 7 Views: 1,321 I has just changed positions of codes and add some lines, it works now. Thank Salem for your advice. |
Forum: C++ Jul 20th, 2008 |
| Replies: 7 Views: 1,321 @Salem : yes, I use the "char* inputFileName=argv[1] " as the variable to read the user input.
Is it the error caused by this variable? |
Forum: C++ Jul 20th, 2008 |
| Replies: 7 Views: 1,321 The code is the same to my code editor. This is the code that I modified from another code. The original one works well, but can play only the file which has the name defined in the code. If I want... |
Forum: C++ Jul 20th, 2008 |
| Replies: 7 Views: 1,321 Hmm...only 1 argument. I thought I typed wrong here. So how can I correct the message "Segmentation fault (core dumped)"? |
Forum: C++ Jul 19th, 2008 |
| Replies: 7 Views: 1,321 Hi, everyone!
I thought I posted the code first, it's better. This is the code of the program I've worked with :
#include "liveMedia.hh"
#include "BasicUsageEnvironment.hh"
#include <stdio.h>
... |