jackofallgeeks: (Point)
John Noble ([personal profile] jackofallgeeks) wrote2007-01-24 11:18 am

*head-desk* *head-desk* *head-desk*

Pointers hold memory addresses.
Pointers hold memory addresses.
Pointers hold memory addresses.
Pointers hold memory addresses.

Doing memset(&some_pointer, '\0', any_length_of_data) is pretty-universally a bad thing.

I pray that's the last thing I break on this. I haven't much time left to submit.

[identity profile] surichan.livejournal.com 2007-01-24 07:57 pm (UTC)(link)
I have no idea what you're talking about, but I hope it all works out. :3

[identity profile] jackofallgeeks.livejournal.com 2007-01-24 08:15 pm (UTC)(link)
I have a coding project due at 4:30 that's taken me days just to get an environment it'll compile in, mostly (I think) because I've been stupid. The above is more foolishness from me, because I've never been a C programmer and pointers confuse me.

With 4.25 hours left, I've got it running now but it's failing. And I need to get it to not fail.

[identity profile] uhlrik.livejournal.com 2007-01-24 08:30 pm (UTC)(link)
Wow... I strongly suspect that you're hosed, but I'll send some good vibes your way.

[identity profile] jackofallgeeks.livejournal.com 2007-01-24 10:10 pm (UTC)(link)
Nah, it just kept seg-faulting. That's fixed now, but it's still failing.

As one computer-guy to another (yes?), what I'm trying to do is a manual three-way-handshake over a raw socket. I have the bytes of my SYN in a buffer, send those over, wait for the SYN-ACK to come back, send my ACK and then recieve a lil chunck of data from him. The trouble right now is that I send the SYN then just wait in my 'recv' loop forever without reading anything -- nothing -- and I don't know if it's my SYN that's wrong, my recv isn't working, the VM I'm running on is futzing up, or what.

I think I've botched this project and won't have any actual code to deliver in two hours. And if that's the case, I'm going to get really depressed tonight...

[identity profile] uhlrik.livejournal.com 2007-01-25 02:09 am (UTC)(link)
Yuck. I hope you got that worked out. I am a bit of a computer guy but I haven't done any real programming in ages, so I'm sure to be no help on the C programming end.

[identity profile] jackofallgeeks.livejournal.com 2007-01-25 03:30 am (UTC)(link)
-laughs- Well, I was mentioning the computer-guy bit less looking for tips and more looking for someone who didn't look at the above and just see 'blah blah blah computers blah blah.'

[identity profile] uhlrik.livejournal.com 2007-01-25 05:06 am (UTC)(link)
Ah, so somebody that wasn't hearing Charlie Brown adult-speak?

[identity profile] jackofallgeeks.livejournal.com 2007-01-25 05:25 am (UTC)(link)
-grins- Indeed. For most people I know, I might as well be speaking Arabic!
And for some people I know, it'd be better if I was. :p