Thanks! that was what I was looking for
Type: Posts; User: lautarox
Thanks! that was what I was looking for
Is it possible to compile under g++?
I've tryied compiling this with no success
#include <iostream>
using namespace std;
class SmallComponent {
private:
BigThing *outer;
That was what I meant, I'm doing a file transferring project in order to archive some experience socket programming, the program has an individual class for each connection, and each connection has...
I have a main class with some child classes inside, I need to be able to access other child classes from a child one or members from the main class like the dosomething() function in the example....
Thanks a lot!, that was my doubt, I can't thank you enough =)
I'm using a monitoring system to know when a socket is ready to be written or read, but what about incomming connections to accept? How can I detect them? I was told that when using poll, epoll, or...
Thanks for your reply, I'll check what was sent and recv and organize the data
I'm having some doubts about socket programming that are burning my head and delaying my learnings about sockets.
Is it better to write into a socket or to use the function send?
When sending...
#include <stdio.h>
#include <stdlib.h>
#define N 8
// int num;
void backtrack(int* column, int* rup, int* lup, int* queen, int);
int main(void) {
//num = 0;
You must add
sum=a+b; inside your loop in order to change the sum value every time you insert the two numbers.
I can't thank you enough! I really needed this
I've read about maps
Now, to access the class data, is it first[1].function(); or first->function(); ?
I need to store multiple classes in a list in order to access the data by a number, but the list is in continuous modification, so I can't access the data using the position of the data in the list....
Yeah, that's right, I've taken a look to the i/o monitoring functions Monitoring I/O I really don't know if it could handle much connections, but with 10 or 20 I think it will be ok. I think I'll use...
Also the glib is portable. Do you recommend me to use the glib? I was worried about windows performance..
I'll take a look at wxWidgets, but gtrkmm also works multi platform. My main doubt was how to imitate the select function in the main loop of gtkmm, but I think I know how.
How can I know when data...
I was told that select has a poor performance on windows applications. I want to make the app for both linux and windows
While I was programming a file receiver/sender , I was recommended not to use the select() function for reading active sockets, I was told to use event libraries such as libevent. I've read the...
What do you think about libev? libev it says it has a better performance.
About my own protocol, yes, I wasn't saying I wasn't creating my own protocol, It's just an small protocol =P.
I'm using...
Thanks Alex and Carrotcake, I'm actually using an struct that stores the parts sended/received, the total parts, the file descriptor and a variable that stores if it has a last part of a different...
I'm trying to program a file sender/receiver for linux, I've done a basic one to send and receive from a computer to another and I want to go further. I've thought of using a queue, with the files,...
But it's storing a double returning function with only an argument.. is it possible to store any kind of functions?
What if I want to store different functions?
I need a queue, to add function pointers so the functions get executed one by one. What's the best way to store the functions? and How can I execute them when I need?
Well.. I'm still trying to develop a kind of event function, I need to store function pointers in a class, so I thought the best way of doing it was with a template. How can I call a function pointer...