jackofallgeeks: (Point)
[personal profile] jackofallgeeks
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.

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

Date: 2007-01-24 08:15 pm (UTC)
From: [identity profile] jackofallgeeks.livejournal.com
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.

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

Date: 2007-01-24 10:10 pm (UTC)
From: [identity profile] jackofallgeeks.livejournal.com
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...

Date: 2007-01-25 02:09 am (UTC)
From: [identity profile] uhlrik.livejournal.com
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.

Date: 2007-01-25 03:30 am (UTC)
From: [identity profile] jackofallgeeks.livejournal.com
-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.'

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

Date: 2007-01-25 05:25 am (UTC)
From: [identity profile] jackofallgeeks.livejournal.com
-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

Profile

jackofallgeeks: (Default)
John Noble

August 2012

S M T W T F S
   12 34
567891011
12131415161718
19202122232425
262728293031 

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 12th, 2025 09:57 pm
Powered by Dreamwidth Studios