Its way more than I asked for. I got lost in the code. My program its quite long and I dont understand how can I integrate it with what you have written.
Please, if you can, try to explain it a little bit more.
Thanks a lot anyway.
Ok I understand your proposal but the problem is that I need to print out the string in a graphical interface, so it's important for me to print only the important information and not a lot of blank spaces.
Thank you very much.
gchar corresponds to the standard C char type and is defined in the Glib library.
What I want to do with this two functions is that if I have
gchar *str1 ="Example";
gchar *str2 ="Append";
while *str2 is different of CR (carriage return) and LF (line feed) append to...
Hello everyone.
I have a little doubt about freeing allocated memory. I'm using this two functions.
gchar* status_code (gchar *status)
{
gchar* data = "";
sip_status ++;
while (*status != CR && *(status+1) != LF)
{
data = concatenar_char(data,status);
status ++;
}
return...
Hi All. I need some help with some configurations. Excuse me for my bad English.
So I have this configuration in my lab:
--------- ------ -------- -----------------
SIP phone|<-->|Router|<-->|Internet|<-->|ADSL Modem/Router| <-->
--------- ------ --------...
Hi!. Right now I'm developing a simple SIP sniffer. I'm having problems capturing the SIP header. I'm using a socket to read from the NIC (fill a buffer). Then I use a pointer and these two fuctions to read from the receive buffer.
int captar_linea(char *sip_line)
{
u_int8_t count...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.