@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13



Comments:

<0> When you use it
<1> it seeks and destroys whoever is in first ;)
<0> It flies to the driver in the first place
<2> I know now. Was playing mario kart on friday
<0> And boom
<3> sweet, I need that in BF2
<2> Multiple DS's + People == Fun
<0> Gamecube + 2 gf == fun
<1> 2 gf?
<3> two hands = two gf
<0> Yes, I became a polygamist 2 weeks ago
<0> ph34r
<0> Note that one of them can't play videogames
<2> meh,, I prefer the DS version recently. Get your own private space + they can't see what you're about to do
<0> She probably couldn't put the disc in the console
<3> Ashe`, if that were true why are you on IRC at this moment?



<0> Asriel`: TV's big enough so you can't see the other players :p
<4> there was a guy in my school that had 2 gf in the school
<2> would be hard to cart into a lecture with me, that
<0> azr|el: I'm in a bad mood cause I lost the gold 150cc
<4> I imagine they both were cool with it since the 3 of them hung out around the school
<5> what are the requirements in a c++ console app for main to take arguments?
<0> None
<6> to write main that takes them
<3> Ashe`, ah
<5> so i can be like int main(istream foo)?
<0> int main( int argc, char ** argv )
<2> No, the main signature is fixed
<2> int argc, char** argv
<5> how can i get main to take an istream object? is that even possible?
<0> What would be the point?
<2> (ARGument Count, ARGument Values)
<5> drag and drop a file onto it for parsing
<3> he wants to drag and drop onto the console window
<5> no onto the program itself
<3> does it have a winmain?
<2> Most OS's will p*** the path of the "dropped" file in as an argument
<2> if you drop a file onto an application
<5> no i dont know anything about win32 api
<0> copy( argv, argv + argc, ostream_iterator<string>(ss," ") );
<0> Or something
<0> Forgot the signature
<2> so just parse argv suitable
<3> it's not a win32 program, however
<3> I've never actually tried that
<1> need a destination for copy, too
<0> There are 3 arguments
<1> er, hmm
<1> i always trip up on that, i thought i had it right this time
<5> so i drop the file onto the program and i dont need main arguments
<5> and in the body of main
<5> i write that copy function?
<0> #include <algorithms>
<5> ok
<3> so what you're saying Asriel`, you can get input like a dropped file from the ostream object in a non win32 app?
<1> -s
<5> ok
<7> any of you at home here ? i need to know more how an irc server relays to a connected client , does that happen within a client to client trough a unique port
<0> Client sends to server (6666)
<1> no, it all goes through the server, Romeo1
<0> Server sends to clients (6666)
<0> Hurray
<0> Except for DCC
<5> so im not clear about what argv and argc are
<5> im a nub :(
<7> to all clients in a loop ? from i to max client connected to a server and then PRIVATE #channelname 'themessage'
<1> argc = "argument count", argv = "argument value"
<1> Romeo1 - huh?
<5> ah
<1> read the irc protocol doc
<0> Romeo1: basically, yeah
<5> do i have to ***ign values to them myself or does the OS and whats p***ed to main do that themselves?
<0> Or to all clients that are supposed to get the message anyway
<0> (1459 for IRC iirc)
<7> yea i am reading it, still want to know from you, does every irc client does have an unique port connected to the server ? or does the server does have all irc clients connected on 1 port and loops to all clients ?
<0> Looks like you need some network programming knowledge before knowing the protocol
<7> Ashe yes, i am reading http://www.irchelp.org/irchelp/rfc/chapter1.html



<1> Paragon` they're filled in with what was p***ed
<5> cool thanks rdragon
<8> I trying to find a good book that could suit me for learning C++ with the STD. I know C and Java and I tried to read Stroustrup's book but I consider it too much of a reference to start learning the languague. Someone has a suggestion for a precise and consise book to learn C++ ?
<1> there's a boost library that helps with the command line args, iirc
<5> as for the ostream_iterator(ss," " )
<5> not sure what that means either
<1> get a book
<5> whats the ss mean?
<1> ss is likely a std::stringstream
<5> ah
<7> Ashe, i do want to know all client on 1 port, or is 1 port needed to adres the server gennerally and after a irc client connects the server communicates the next available port for the irc client
<5> and " " is the delimiter?
<5> space?
<1> yes
<5> gotcha
<9> jp__ get C++ Primer 4th Ed.
<5> so for what im trying to accomplish it would be istream foo = copy(argv, argv + argc, ostream_iterator(ss," ") );
<5> ?
<0> Romeo1: connecting to a port doesn't make it unavailable
<3> Romeo1, sounds like you want a sockets tutorial...and a server can listen on one port for information from multiple clients with multiple emphemeral ports
<1> Paragon` - no
<5> no?
<1> no.
<5> ok
<5> fix? :)
<1> std::copy copies, it returns an iterator, not a stream
<5> oh
<10> We won't do you homework, and we won't write your software, either.
<7> Ashe, combination of course serverip + general_port -> after a succesfull connection the connection is tranfered to a serverip + unique_port
<8> static3d_ still 912 pages
<0> Romeo1: not sure what you want us to tell you
<8> static3d_ and I feel I could skip the first part because I programing in C and Java.
<7> yes and i do know that a server can handle all clients on 1 port + serverip, but that would mean that the server must be very fast to handle one single message
<1> jp__ - http://www.rudbek.com/books.html
<1> and don't skip anything because you "know C / Java"
<9> well thats what i got after using strictly c for years
<0> Why would handling few bytes be slow
<3> Romeo1, it doesn't have to be any less fast to spread them across multiple ports
<9> works for me
<1> Paragon`: http://www.boost.org/doc/html/program_options.html
<5> thanks dragon
<5> you guys have been great :)
<7> azre okay, so it means the stratetic one serverip + one single port for all clients versus serverip + several unique ports does not make the communicationp between server and ircclient faster
<0> Nope
<1> nopew
<3> Romeo1, are you asking or telling?
<7> hmn. but using the second version, serverip + serveral unique ports does make sure there is one handle (instance) for one irclient, in this way the ircclient can be processes simultaniously
<7> azre, i am trying to converm my toughts here
<7> confirm i mean
<0> You make no sense, Romeo1
<3> it's all on the same interface so it doesn't matter
<3> each port still shares the same network interface
<7> yup
<3> so you're not saving anything by having everything on a separate port the way you suggest
<3> if anything there's more overhead in your program
<9> the only time using mulitple ports really matters is if one port is receiving so much data its overflowing the port's buffer
<9> which almost never happens
<3> and that's more of a stack issue
<7> hmn, but programmaticly you dont have to wait , independed requests where each request does have an indivual port does mean simultanious processing
<3> the things you're talking about are handled by the protocol stack, Romeo1
<0> You don't have to wait no matter what you do, Romeo1
<3> Romeo1, I think you should read some tutorials on sockets
<7> hn
<7> keeyy
<3> it's much simpler than you're imagining
<7> whehe, did not help anything to clear things up
<7> i have tried the Indy Project do you know that platform ?
<3> the sockets platform right
<7> yup complete tcpserver correct
<0> Must be at least 500 lines of code
<0> Heh
<7> hmn i am off to read the rfc of ircclient and server
<3> I've never messed with anything indy


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #c++
or
Go to some related logs:

#linux
Local: Bad packet length 1349676916
irc #linuxhelp cyclic
linky kuto
#linuxhelp
MissKitten +What part of the eye continues to grow throughout a persons life ?
quotes for Maids of Honnor
#linux
#linux
#skype



Home  |  disclaimer  |  contact  |  submit quotes