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
~7K People Reached
Favorite Forums
Favorite Tags
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
172
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
150
Member Avatar for ImaginaryHero

I am at the beginnig of the softphone project for my university final project.. I will implement a softphone with using SIP protocol and C++ language on linux. I need some advice about tutorials, usefull API and whatever which will help me. Thanks..

Member Avatar for alwaysLearning0
0
2K
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
300
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
860
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
147
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
65
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
85
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
353
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 mvmalderen
0
130
Member Avatar for mvmalderen

[B][COLOR="Red"]First:[/COLOR][/B] I'm not asking how to do this, just carry on... Hey, I found a nice link on how to read C/C++ declarations: [B][URL="http://unixwiz.net/techtips/reading-cdecl.html"]http://unixwiz.net/techtips/reading-cdecl.html[/URL][/B] I'm leaving it here for anyone... I hope it will be useful to you!

Member Avatar for xyzt
0
94
Member Avatar for verruckt24

The environment of my application is as mentioned below : The application is a Router/Accounter library used to identify an appropriate Route (and also the price for that) when a destination for a Mobile number is queried through the API. The Route to be used for sending an SMS message …

Member Avatar for xyzt
0
175
Member Avatar for metal_butterfly

I have a client /server file operation program.It works properly when i run the client and server program in the same system.but when i try to run the client in one system and server in another system i am getting an error in the cleint machine as "ERROR:Connection refused". Plz …

Member Avatar for xyzt
0
103
Member Avatar for daniel_16

Hi, I am creating a hash table which is basically a pointer array of 6151 elements. I use it for chaining. But my code doesnt work properly. There's an error at T[i]=NULL and at function call. This is how it goes: [code=cplusplus] #include <iostream> #include <string> #include <vector> #include <fstream> …

Member Avatar for xyzt
0
568
Member Avatar for daino

Hi all This may seem relly naive but I'm only new to C++. If, in the future I want to build charting software for stock-charts, etc and want a very professional and portable widget toolkit to use with C++ which one should I use and what should I be looking …

Member Avatar for xyzt
0
107
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
80
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
118
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
88
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
820
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
130
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
90
Member Avatar for xyzt

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

0
53