| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
Comments:
<0> Built in surround on a TV doesn't sound like it surrounds. <0> (baddum ching) <1> Sony makes some good recievers i must admit <2> PRIVMSG <nick> : <- how would I get this number in C for irc ping request? <0> jason3: What? <1> u just want the number? <0> You parse it ... <2> no I need to send it <0> Or what? <1> PING: is always 5 characters <2> and why did I get a ping reply from 50 people after asking that question? lol buggy clients <2> can you paste me the message you got? I think you're not seeing the ^A character4 <2> PRIVMSG <nick> :^APING 1151953529^A <1> here's what i did for the client i coded <3> yey ctcp
<1> change the I in ping to an o <1> and send it back <2> no <2> it's not a PING request from server, I want to ping another user <1> cRawData[2] = 'o'; <1> gotcha just parse it <1> use strtok <1> and split it up by ':' delimiter <3> to lazy to recheck the time? <2> I'm not lazy I dont know how, which is why I'm asking <1> i vote for strtok <4> man strtok <4> ^ <0> Hm <2> how will strtok help me/ i need to generate ping request string <1> u want the # dont you? <2> I need to generate the number <1> a timestamp? <2> :^APING 1151953529^A <2> 1151953529 <- this number <3> time() <1> time(NULL) <3> man it <3> love it <1> just generate a timestamp done <1> time_t tTime = time(NULL); <5> Y'know... it'd be good if there was a separate audio input to accompany s-video rather than using the same audio inputs that would be used for normal a/v input. <2> and then I sprintf it? <1> if ur throwing in a buffer <1> ya <2> what flag should I use <1> %i <2> it's unsigned, i guess i'll use %u <2> that doesn't seem too portable though <1> what doesn't? <2> printing time_t as int or unsigned int <1> time is standard <1> time_t is typedef'ed as a uint <2> on your platform <1> u should be fine with using %u, it's never less than 0 ;) <1> and if it ever gets bigger than a UINT well ill be dead <1> so it wont matter <2> but what if %u is bigger, say 64bits <2> long <1> wont matter <1> time_t is still smaller <6> unsigned long t = time(0); printf("%ul", t); <1> i just usually type cast as a Unsigned int for time <1> it's never gonna be bigger than what a uint can hold <2> okay <2> works <2> :) <6> well, i'm specifically avoiding a typecast because that will surpress warnings if time_t is indeed larger than unsigned int or whatever <2> why did I get 100 ping replies after asking my initial question, buggy clients? <6> jason3: indeed <1> yup <2> [rip PING reply]: 12mins 33secs [blake PING reply]: 12mins 33secs etc <3> time_t is going 64 bit sooner or later <3> woops <3> before Tue Jan 19 03:14:07 2038 GMT <6> jason3: considering you'll be parsing several different irc commands, i imagine you'll want to setup some function that will break apart the string on whitespace, up until you reach the ':'.
<6> jason3: eg, ":foo!bar@baz PRIVMSG #c :hello foos" would be converted to {":foo!bar@baz", "PRIVMSG", "#c", ":hello foos"} <1> that's where strtok comes into play <2> yes I did that, pretty much everything worked apart from ping request. I was just sending ^APING^A before like with any other CTCP request <6> which after you do that, you'll be able to easily and correctly (unlike some of these clients) determine whether or not a ping worked <6> s/worked/was sent/ <2> seems like these clients parsed the message twice, first the PRIVMSG I was sending to the channel, then the actual message <7> strtok is depreciated Nooshva. <2> or maybe they didn't see my message at all, and just got ping request <6> jason3: when you reply to a ping, you send back the same text, but you use NOTICE instead of PRIVMSG <1> strsep <1> living in the past <6> jason3: i suggest using a packet sniffer like ethereal if you already aren't. <7> or a real-time dissector like ettercap...probably better. :-) <2> I am <7> Discounting ethereal's tarnished design and security. :-P <8> ethereal lets you sniff actual messages exchanged by irc client and server? <7> Any packets, but not in real-time. <8> just from irc server and client, or you get other garbage together with it <7> Buran|WOW, you can setup filters. <7> Buran|WOW, why don't you go and look at ethereal's website? The feature list is evident there. <9> i usually use tcpdump, but ethereal is good too. <8> I will I need something like that. what about ettercap, it's the same but real time? <7> OrngeTide, why is it good? <7> OrngeTide, wireshark is generally better than ethereal. <7> OrngeTide, ethereal is pathetically slow and has always had a pretty nasty security rap sheet. <7> OrngeTide, it isn't even that powerful in terms of filtering (and scripting to handle events) compared to ettercap or similar, it can't understand streams, etc... <7> Buran|WOW, it has a bigger feature set. <7> Buran|WOW, http://ettercap.sf.net/ <10> lol <8> sbahra can I make either display \r\n as well? I think my irc client sometimes sends double \r\n <10> wireshark IS ethereal <11> ettercap has had its fair share of issues too :P <11> and so has tcpdump <10> they just changed the name because of copyright/trademark issues <7> vio, the same code-base, there is digression. Please. <7> vio, and no, ettercap has had only one major exploitable security issue... <7> vio, discounting the fact that ettercap is a much more advanced system than ethereal. :-/ <7> vio, it's apples and oranges. <7> vio, tcpdump is as trivial as ethereal, and its issues are pretty much cleared up now (ethereal has had a stream of issues popping up both in public and private). <4> what's the best way to parse a custom configuration format? doing it by hand, or using flex? <9> sbahra, well tcpdump works well at the console and can do enough filtering for me. plus i am mainly looking at udp and ip since I tend to find myself debugging the kernel NFS driver:P <10> you said wireshark is generally better than ethereal... i just pointed out that wireshark is ethereal <7> OrngeTide, hehe, well, yes...tcpdump is nice because of console output and is nice if you're looking at packet level (or packet-matching). <9> ever place i've worked had a weird network topology. so to get on the same network at the devices I have to use console. <7> vio, wireshark is a continuation of ethereal, I'm saying if you want to use something crappy...use wireshark at the least as, yes, it is better in terms of later library support. <9> like we put all our hardware on the private network, if you accidentally plug devel hardware into the LAN you end up with half the companies phones logging into your VoIP server instead of the real one. which apparently annoys many people <7> vio, a majority of platforms differentiate between wireshark and ethereal (ethereal is a primitive package, older dependencies, etc...) <7> vio, I'm not implying their different, I'm implying they will continue divering (if one diverges at all, which is unlikely unless someone picks it up) <7> feti_, how complex is the configuration format? <4> i don't even know at this point to be perfectly honest. not too complex. i may even just go with var = value format <4> but i want the ability to do multiple lines for a value <7> feti_, well, if it's that simple, it could be worth it to write your own configuration parser. <9> just be happy that you have so many choices for packet sniffing/debugging. <7> OrngeTide, definitely. :-) <9> feti_, what do you want to do use " to continue on multiple lines or \ ? <7> OrngeTide, I just hope good steps are taken forward. <4> to be honest, i'd rather use quotes <7> OrngeTide, it's pathetic how some of the more popular products operate (snort, etc...). <4> val = "hello"<newline>"world" as an example <9> windows ini file (a crappy, but easy to implement format) doesn't normally support multiple lines. <4> \ is commonf or unix people is uppose <4> suppose. <9> feti_, that kind is a bit tricky <9> val = "hello\<newline>world" is probably easier. <4> well can't i use fgets() and keep appending, then on next line trim it and check for " ? <4> as first char. <7> feti_, yes. <9> i would just write a parser at that point. <4> ok <9> or use xml and have expat do all the work. <7> A parser is always a good exercise too. :-) <4> now thi smay also sound stupid, but i'm doing this for a custom fastcgi app for a client. i'd like a way to do templating inside, for web development. i can't go with PHP itself, cause this has to be C for the client. <7> Anyone here do web design and wants to make some money? <9> a client that wants C for their cgis? I think i like this guy.
Return to
#c or Go to some related
logs:
#sex #computers ciscocmd #gentoo aapl NASDA
SLiM efnet #windows #delphi Invalid object name '%.*ls'. chanukah song torrent sandler
|
|