Forum: C Jun 17th, 2006 |
| Replies: 8 Views: 2,607 I tried #1, still got 0.0.0.0 with it.. As far as #2, the issue is that I want to know what machine it is, so I don't know what to ping (and in any case, there's no need for me to ping it, since if... |
Forum: C Jun 16th, 2006 |
| Replies: 8 Views: 2,607 jim,
I'm a bit confused. If the client attempts to do a 'bind', won't it get an error that it's already in use? |
Forum: C Apr 14th, 2006 |
| Replies: 2 Views: 1,356 Show us the code where you are requesting and accepting the string to begin with, then we'll show you how to modify it for the error checking. |
Forum: C Apr 13th, 2006 |
| Replies: 3 Views: 9,898 if x is 6 and y is 2, then the result is 0. |
Forum: C Mar 17th, 2006 |
| Replies: 3 Views: 6,380 If you want to make sure there are no numbers in a string, you can do a find_first_of( "01234567890"). If it equals anything other than string::npos, it's got a number in there. |
Forum: C Mar 13th, 2006 |
| Replies: 4 Views: 1,367 I guess the main question I have is how to define a variable that is not shared among threads inside a function that is used by a thread... |
Forum: C Mar 13th, 2006 |
| Replies: 4 Views: 1,367 I figured out a way to do it, just not sure if it's the right way. Let me know what you guys think:
Temp.cpp
extern "C"
{
#include "pthread.h"
#include "Thread.h"
}
#include <iostream>... |
Forum: C Mar 13th, 2006 |
| Replies: 4 Views: 1,367 I modified Thread.h to add the pthread_self() which shows which thread id it has...
#include "stdio.h"
#include "Temp.h"
pthread_mutex_t ilock;
void * myTest(void * arg)
{
char * test =... |
Forum: C Mar 13th, 2006 |
| Replies: 4 Views: 1,367 Hi Guys,
So I'm trying to experiment with threads, though I'm running into some problems. Basically I'm trying to create multiple threads, where each thread is passed a different set of data. In... |
Forum: C Oct 23rd, 2005 |
| Replies: 3 Views: 2,273 Yes, just look at the other members of the tm struct. |