Thanks to both of you. I had not seen ctrace. I'll check on that. Also, I could automate it with an expect script. Hadn't thought of that. Ok, I'll see what I can come up with.
Thanks again.
Type: Posts; User: trinli
Thanks to both of you. I had not seen ctrace. I'll check on that. Also, I could automate it with an expect script. Hadn't thought of that. Ok, I'll see what I can come up with.
Thanks again.
A full trace of the program. A file which contains a listing of every line (with line numbers) that the program executed in the order that they were executed, from start to finish. I looked at the...
I haven't found a way to do this in gdb, so I asking.
What I would like to do is run a program and get gdb type output (full trace of the program), but not interactively. In short, a file...
I have seen something like this when I was programming with UDP sockets. Just a "shot in the dark" what does errno report?
BTW, I'm mostly a linux programmer, so this might not be of help.
Sorry, I was gathering my notes into something that might be useful. It was actually fairly simple.
sorta pseudo code follows:
#include <net/pfvar.h>
define a struct of type pfioc_natlook...
Nevermind. I found an answer.
Hi. I'm working on porting over some proxy code to FreeBSD. The problem is that the port is redirected using PF. When this happens, the code that linux uses to figure out what the original target...
Well, errno does give me back a connection error consistently after the first failed send. This might be good enough for what I need. I'll have to run some tests to figure out if it's reliable. ...
I'll check that. Thanks
And, yeah. Unfortunately, I started with using sendto.
I'll have to talk to the guy writing the server side. At current, as I understand it. There's no response at all. But, because I do get a -1 result from this (and it's in a pattern), it seems to...
Thanks for the input, but it didn't solve the problem.
I replaced the write command with both:
numrec = send(srcsock,sendst,strlen(sendst),0);
or
numrec =...
I'm trying to write a udp client program that will detect if the server went down. This program is for a linux or BSD system. Here's a short test program:
#include <netinet/in.h>
#include...