Up |
|
|
  |
|
|
  |
Author: skpopuskpopu
Date: Apr 24, 2008 21:18
I have a two systems and I am able to communicate both systems using
udp server and client at both ends but I need to make one system as
concurrent server and now I would like to add one more system into the
group and now I would like to multicast the message from My main
server to the new joined system and now I should be able to send and
recieve from both the other systems to the main server.
Exactly what I have with me is : Two systems having udp server and
client programs running in each of the systems and they are
communicating well.
Now what I need is I am adding one more system to my network and I
should be able to serve the other system also from One of this
systems.For this I have made One thread as listener thread and every
time a new client comes for service it is seperated as new...
|
| Show full article (0.96Kb) |
|
| |
4 Comments |
|
  |
|
|
  |
|
|
  |
|
|
  |
Author: Rex MottramRex Mottram
Date: Apr 24, 2008 18:05
I'm using an API which does a lot of callbacks. In classic callback
style, each routine provides a void * pointer to carry user-defined
data. Sometimes, however, the user-defined pointer is not needed which
causes the compiler to spit out a "helpful" warning. For example:
%% cat unused.c
#include
int
foo(char *str, void *data)
{
puts(str);
return 0;
}
%% gcc -c -W -Wall unused.c
unused.c:4: warning: unused parameter 'data'
I'm looking for an appropriate (safe, reasonably self-documenting) way
of suppressing that warning in cases where I expect it (thus I'm not
looking for the compiler flags to suppress the warning - I just want to
be able to mark the places I know about). I've used constructs like
|
| Show full article (0.94Kb) |
|
14 Comments |
|
  |
Author: blog247blog247
Date: Apr 24, 2008 17:40
Brand Watches Mont Blanc Men's Watches Star Steel 05222 - AA Discount,
Swiss, Fake
Browse our Mont Blanc Men's Watches Star Steel 05222 - AA Swiss
watches, which is sure the watch you are looking for at low price.
There are more high quality designer watch Swiss for selection
Mont Blanc Men's Watches Star Steel 05222 - AA Link :
http://www.watches-brand.com/Mont-Blanc-wristwatch-4694.html
Brand : Mont Blanc ( http://www.watches-brand.com/Mont-Blanc-Watches.html
)
Model : Mont Blanc Men's Watches Star Steel 05222 - AA
Description :
Montblanc watches - the quality watches. Montblanc watches -
reflect the exacting demands made today for quality design, tradition
and master craftsmanship.
Sale Price : $ 245.00
Mont Blanc Men's Watches Star Steel 05222 - AA Details :
|
| Show full article (3.33Kb) |
|
no comments
|
|
  |
Author: HansWernerMarschkeHansWernerMarschke
Date: Apr 24, 2008 15:26
// This will be a simple example for Matlab programming in C
// But I have to first test the C program before I incorporate it into
Matlab
char *encrypt_string (char *string)
{
unsigned int i;
// Allocate memory
char *encrypted_string = (char *)
malloc(strlen(string)*sizeof(char));
// Encrypt the string
for (i = 0; i < strlen(string); ++i)
{
encrypted_string[i] = encrypt_char(string[i]);
}
encrypted_string[i] = "\0"; <------------- Something goes wrong
warning C4047
return encrypted_string;
}
|
| Show full article (0.64Kb) |
|
3 Comments |
|
  |
Author: BartcBartc
Date: Apr 24, 2008 13:31
I'm mixing C and ASM, and for calling ASM from C, I just happened to use the
__stdcall convention (using C convention is not practical for other
reasons).
But, __stdcall seems to assume that machine registers are saved by the
called routine (as far as I can gather after a few hours messing with some
strange behaviours especially with optimised C code).
Is there any other call convention I can use likely to be commonly
available?
Or is there a way of specifying that an external function does not save
registers or is badly behaved?
--
Thanks,
Bartc
|
| |
|
54 Comments |
|
  |
|
|
  |
|
|
|
|
|
|