fair enough. so anyone know why setsockopt() isn't having the same functionality in cygwin when im on windows as it is when i run it in ubuntu?
Type: Posts; User: c++guy
fair enough. so anyone know why setsockopt() isn't having the same functionality in cygwin when im on windows as it is when i run it in ubuntu?
well when making a decision that can benefit yourself and affect other people in a 'negative' way, everyone weighs the scales differently. for example if there existed a situation where i could gain...
i dont see the problem in it really. realistically there are some people on this board who aren't on dreamincode. and realistically there are some people on dreamincode that aren't on this board. so...
i solved this by adding a print statement for every iteration of the loop and making sure i put null terminator at end of every recv:
do {
iResult = recv(tcpSocket, request,...
My output usually is something like:
Second Half New Way: /finance
First Half: Google
Google = 74.125.47.10574.125.47.10674.125.47.14774.125.47.9974.125.47.
10374.125.47.104
GET /finance...
you are awesome! it was because of the spaces and the fact that i had 3 \r\n's. my teacher had 3 in his provided code for some reason so i had no idea that had a chance at being incorrect. thanks a...
here is my code:
/*
* File: webClient.c
* Author: Adam
*
* Created on November 3, 2011, 1:26 AM
*/
nvm, i got it. you put me on the right track though, thank you
i tried
do
{
//do code
}while (rc>0);
how do i loop until this is done?
the way it is written currently, it only writes the first 512 characters. how can i make it loop until it writes the whole file? i think i need some kind of loop in...
my main program must accept the names of input and output text files as command line arguments. it should create a pipe and then create 2 other children processes. the pipe is for communication...
sorry that was a typo on my part. I only have one semi colon there when i get that error. here is what my class looks like.
template <class VertexType, class CostType>
class WDiGraph
{...
When I write my addedge function I get an error saying that I cannot create an iterator of type VertexInfo.
template <class VertexType, class CostType>
void WDiGraph< VertexType, CostType...
sorry, I am having trouble understanding. Ok I am given these structs:
private:
// information for each edge
struct EdgeInfo
{
public:
int to; // vertex number...
ok so my addedge function would just be like
addEdge(vertexType origin, vertexType destination, cost cost)
{
origin->(destination, cost);
}
is that all it does?
I am supposed to create a weighted directed graph and implement a variety of functions for this graph. Creating a directed graph, Depth first search, Breadth first search, adding edges, removing...