Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
50% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
2 Commented Posts
0 Endorsements
~8K People Reached
Favorite Forums
Favorite Tags

25 Posted Topics

Member Avatar for xyzt

Hi all I'm designing a multithreaded application which has long running threads. I need to check some condititons in the main thread, interrupt the threads and end the program if the conditions are true. But i'm not sure if this is the correct/safest way. Here's my pseudo: [CODE]main() { boost::thread …

Member Avatar for thekashyap
0
176
Member Avatar for xyzt

hello, i need a tool to measure the cyclomatic complexity of a given C source file. what do you suggest for this? thanks..

Member Avatar for IssamLahlali
0
154
Member Avatar for ImaginaryHero
Member Avatar for xyzt

Hello I try to send DHCP RENEW packets to the network and receive the responses. I broadcast the packet and I can see that it's successfully sent using Wireshark. But I have difficulties receiving the responses.I use packet sockets to catch the packets. I can see that there are responses …

Member Avatar for xyzt
0
335
Member Avatar for xyzt

Hello, I try to use POSIX Message Queue API and in the doc it says that: [CODE]#include <mqueue.h> int mq_send(mqd_t mqdes, const char *msg_ptr, size_t msg_len, unsigned msg_prio); [/CODE] [I]The mq_send() function shall add the message pointed to by the argument msg_ptr to the message queue specified by mqdes. The …

Member Avatar for kbatra
0
901
Member Avatar for xyzt

Hello, I was just trying to write some simple codes to learn C. I wrote 3 functions, create a list,print a list and free a list. but i get segfault while printing the list. (by the way, list is not a list datastructure. it's just an array) In create_list, I …

Member Avatar for Tom Gunn
0
149
Member Avatar for xyzt

Hi I use ctags and vi integrated. It's fine for now but I wonder if it's possible to find usages of a function? May be someone helps. Thanks in advance.

Member Avatar for jqbsx
1
68
Member Avatar for xyzt

hello, i was looking at a program someone wrote. I saw something like that: name = (char*) strdup(path); strdup already returns char *, so why do we need casting here? did he do a wrong thing or am i wrong?

Member Avatar for xyzt
0
95
Member Avatar for xyzt

Hello, I have lots of xml files in the same format and I need to modify a xml tag in these files. i loop over the files and apply sed to the files to make the modification but CPU goes to %100 while doing this. I think I'm doing something …

Member Avatar for fpmurphy
0
407
Member Avatar for xyzt

In a book, I saw a definition like this: [CODE]static struct map_info mymap = { .name = “mymap”, .phys = FLASH_START_ADDR, .size = FLASH_LENGHT, .bankwidth = FLASH_WIDTH, };[/CODE] what does it mean..?It's not clear for me actually..

Member Avatar for tux4life
0
131
Member Avatar for tux4life
Member Avatar for verruckt24

i'm not sure but maybe it will be faster if you write a C function that does this job and use it via JINI.. just a suggestion.

Member Avatar for xyzt
0
179
Member Avatar for metal_butterfly

Hi, I try to write a small socket program in my Linux machine. I go on the Beej's guide but I cant compile the sample because, i have not the function: get_in_addr(..........) in my Linux. What's the problem you think?

Member Avatar for xyzt
0
104
Member Avatar for daniel_16

your definition is local in the function 'createMTable' at line 28: vector<string> MTable; you fill the vector but it's destructed at the end of the function.

Member Avatar for xyzt
0
584
Member Avatar for daino
Member Avatar for xyzt

I really can't understand why the belove code gives error. I get this error: [I][B]In function 'int* bubble_sort(int*)': error: no matching function for call to 'swap(int*&, int&, int&)' [/B][/I] May someone please show me the reason? [CODE]int* bubble_sort(int arr[]) { for(int i=0;i<sizeof(arr);i++){ for(int j=0;j<sizeof(arr);j++){ if(arr[i]>arr[j]) swap(arr, i, j ); break; …

Member Avatar for Salem
0
82
Member Avatar for xyzt

Hello It would be great if someone suggest me a library for handling configuration files.Is there a general method for this job? PS:i need it for *nix platforms Thanks in advance.

Member Avatar for Ancient Dragon
0
120
Member Avatar for xyzt

hello i try to use SLF4J for logging. i try something like this: [CODE] import org.slf4j.Logger; import org.slf4j.LoggerFactory; import util.HibernateUtil; public class Main { public static void main(String[] args) { Toolbox tool = new Toolbox(); tool.helloWorld(); } } class Toolbox { Logger logger = LoggerFactory.getLogger(this.getClass().getName()); public void helloWorld() { logger.debug("Temperature …

Member Avatar for stephen84s
0
91
Member Avatar for xyzt

hello, i need your opinion about selecting a networking library. ACE or Boost.Asio ? anyone know pros and cons of these? as i saw, ACE is stronger and well documented. but i didn't work with non of them and if anyone worked with these, it would be great to be …

0
49
Member Avatar for xyzt

Hello I need an editor or IDE to edit source files over FTP. Sources and the development environment is on a Unix server and I need to edit these files. There's an editor or an IDE plugin to do this? Thanks in advance.

Member Avatar for jencas
0
109
Member Avatar for xyzt

hello do the member functions of a class occupy memory or just the member variables occupy memory?

Member Avatar for Narue
0
825
Member Avatar for xyzt

hello, i want to learn if there's memory leak problem in my code...Let me explain: I have a Customer class,that class also have a destructor function. I have a static function in that class which returns n Customer objects. [CODE] static Customer* createCustomers(int n){ //... } [/CODE] [CODE] int main(int …

Member Avatar for Ancient Dragon
0
133
Member Avatar for xyzt

What's the best way to transfer image files from the client application to the server application?using TCP or FTP? and a second question: there's a way for portable fork() ? i want it to be portable for Linux,Unix and MS Windows...

Member Avatar for jencas
0
67
Member Avatar for xyzt

hello I need to do something like this: for ex. if the N is 12 then, i will produce strings like "001" "002" "003" "004" ... "012" if the N is 6 then, I will produce strings like "01" "02" ... "06" is it possible to do that with standart …

Member Avatar for Duoas
0
92
Member Avatar for xyzt

hello there's a simple method to track the build number of the application?

0
53

The End.