Hi all!
I made a complete IRC Services application in Perl and now i'll want to do the same with C++.
I use BSD Socket. After established the connection with the server, my services need to use the NICK commande to introduce a Service NickName like Chanserv.
The syntax is like: NICK nickname numeric timestamp 0 :description
I try to do:
char * msg;
msg = "NICK bot 3 "time()" 0 :IRC Services\r\n";
send(sockfd, msg, len, 0);
But an error occur during compulation about the () of time.
I'll hope somebody could help me!
Thanks in advance!
I made a complete IRC Services application in Perl and now i'll want to do the same with C++.
I use BSD Socket. After established the connection with the server, my services need to use the NICK commande to introduce a Service NickName like Chanserv.
The syntax is like: NICK nickname numeric timestamp 0 :description
I try to do:
char * msg;
msg = "NICK bot 3 "time()" 0 :IRC Services\r\n";
send(sockfd, msg, len, 0);
But an error occur during compulation about the () of time.
I'll hope somebody could help me!
Thanks in advance!
Comment