Hello, I am currently trying to use boost asio for IPC. I ran into 2 strange issues: 1) when using the acceptor class, when I bring my process up, I get the error 'Already open' when trying to listen. The port I am trying to bind to is definitely not being used by another process. This only happens for a couple of my processes (others work fine). 2) when trying to establish a connection to a server (one that works fine from above), both processes receive the connection (and also disconnection when I kill one), but when I try to …

Member Avatar
Member Avatar
+0 forum 3

I have NO IDEA how to use Python. Best answer if you write the full program! Please help me! I will be forever grateful! Accept / Reject Monte Carlo Part I: Goal: Write a python program that will: 1. define a function for a specific probability density function f(x), 2. define a function that will sample from f(x) using the accept/reject Monte Carlo algorithm, 3. make a histogram of the samples and compare to f(x). Recall the accept / reject algorithm is: I. generate a uniformly random value of x (in its range) II. generate a uniformly random value y …

Member Avatar
Member Avatar
-2 forum 1

Toshiba Windows 7 Laptop is not accepting 1 Critical Update after numerous attempts. It is update KB2667402 159KB. Any help would be appreciated. System is Windows 7 x64.

Member Avatar
Member Avatar
+0 forum 8

solution for accept name from user in C++

Member Avatar
Member Avatar
-1 forum 2

I was trying to input strings into a structure I made, but I couldn't succeed. I use Visual C++ 2010 Express Edition. The code is this: [CODE]#include<iostream> #include<conio.h> #include<stdio.h> #include<string.h> using namespace std; struct schrec { char childname[20]; int childage; }; void main() { schrec record[20]; int n; cout<<"How many students?\n"; cin>>n; for(int i=0;i<n;i++) { cout<<"Enter name of student "<<i+1<<endl; gets(record[i].childname); cout<<"Enter age of the student\n"; cin>>record[i].childage; } cout<<"\nThe record you gave is"; for(int i=0;i<n;i++) cout<<endl<<record[i].childname<<" ("<<record[i].childage<<")\n"; _getch(); }[/CODE] The output in Visual C++ is How many students? 1 Enter name of student 1 Enter age of the student 15 …

Member Avatar
Member Avatar
+0 forum 6

I would like to know how to build the code or if there is script I can use to be able to credit peoples accounts with credits if they purchase the credits. Like if you pay $1, then you get one credit that can be used to buy things. If you pay $5 then you get 6 credits. Then with the credits I would like the people to be able to buy items with them. The main reasons for credits is to make my site look better / professional, and for where people can get additional credits like if they …

Member Avatar
Member Avatar
+0 forum 2

Hi, i have question about accept call interrupting. As you can see I have a loop which is controlled by boolean [B]not_ended[/B]. I set this var to 0 (false) in a separate function. I would like to know how should I [U]manage to interrupt this accept loop properly[/U]. When I set the [B]not_ended[/B] I need to interrupt the accept call somehow. Directly closing [B]socket[/B] causes: [CODE]Problem with accept call : Bad file descriptor [/CODE] [CODE]int sd, not_ended = 1; while (not_ended) { sd = accept(socket, (struct sockaddr*) &from_serv, &addrlen_serv); /* threading stuff */ }[/CODE] Thanks in advance!

Member Avatar
Member Avatar
+0 forum 7

Hello, it has come time for me to be able to accept a credit card/multiple credit cards on a website. I ask you guys to guide me in the correct direction to doing this. I do not want to use pay pal or a payment gateway. Thank you, much regard!

Member Avatar
Member Avatar
+0 forum 9

The End.